Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 Error during login (403 Client Error: Forbidden for url: https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true) #56

Open
AlcantaraMC opened this issue Aug 9, 2022 · 2 comments

Comments

@AlcantaraMC
Copy link

Hi.
I cannot use the app due to this error where it does not allow me to login.

I printed the full error page: SECATEUR_LOG.pdf

Notes:

  1. I ran this app multiple times, the first where both OAuth2 and OAuth1.0 were both active. I surmised that meybe it does not want OAuth1.0 to be on, so I went to my app page and turned it off. I ran it again with the same results.
  2. I am quite sure that my Access Tokens were correct.
@AlcantaraMC
Copy link
Author

This is the command-line logs from the docker app:

app_1 | August 10, 2022 - 00:53:40
app_1 | Django version 4.0.5, using settings 'secateur.settings'
app_1 | Starting development server at http://0.0.0.0:5000/
app_1 | Quit the server with CONTROL-C.
app_1 | {'request_id': '0561eb38-eb35-4db9-9719-057383505d04', 'user_id': None, 'ip': '172.18.0.1', 'code': 500, 'request': 'GET /complete/twitter/?redirect_state=WABtzZUiZ7fRPucjU8Iy9IcVWSMY4pPn&oauth_token=XDQ4xwAAAAABfvViAAABgoKmNa8&oauth_verifier=2A10HsiKDdRzTCAO0Y7aWgucd2JKd5t1', 'event': 'request_failed', 'timestamp': '2022-08-09T12:54:39.923095Z', 'logger': 'django_structlog.middlewares.request', 'level': 'error'}
app_1 | Internal Server Error: /complete/twitter/
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 247, in wrapper
app_1 | return func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 180, in auth_complete
app_1 | access_token = self.access_token(token)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 292, in access_token
app_1 | return self.get_querystring(self.access_token_url(),
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 245, in get_querystring
app_1 | return parse_qs(self.request(url, *args, **kwargs).text)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 238, in request
app_1 | response.raise_for_status()
app_1 | File "/venv/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
app_1 | raise HTTPError(http_error_msg, response=self)
app_1 | requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.twitter.com/oauth/access_token
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
app_1 | response = get_response(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
app_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func
app_1 | response = view_func(request, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
app_1 | return view_func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/utils.py", line 46, in wrapper
app_1 | return func(request, backend, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/views.py", line 31, in complete
app_1 | return do_complete(request.backend, _do_login, user=request.user,
app_1 | File "/venv/lib/python3.9/site-packages/social_core/actions.py", line 45, in do_complete
app_1 | user = backend.complete(user=user, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 40, in complete
app_1 | return self.auth_complete(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 252, in wrapper
app_1 | raise AuthForbidden(args[0])
app_1 | social_core.exceptions.AuthForbidden: Your credentials aren't allowed
app_1 | [10/Aug/2022 00:54:40] "GET /complete/twitter/?redirect_state=WABtzZUiZ7fRPucjU8Iy9IcVWSMY4pPn&oauth_token=XDQ4xwAAAAABfvViAAABgoKmNa8&oauth_verifier=2A10HsiKDdRzTCAO0Y7aWgucd2JKd5t1 HTTP/1.1" 500 119804
app_1 | Internal Server Error: /favicon.ico
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 39, in _get_site_by_request
app_1 | SITE_CACHE[host] = self.get(domain__iexact=host)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
app_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/query.py", line 496, in get
app_1 | raise self.model.DoesNotExist(
app_1 | django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
app_1 | response = get_response(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/utils/deprecation.py", line 136, in call
app_1 | response = self.process_response(request, response)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/flatpages/middleware.py", line 12, in process_response
app_1 | return flatpage(request, request.path_info)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/flatpages/views.py", line 35, in flatpage
app_1 | site_id = get_current_site(request).id
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/shortcuts.py", line 14, in get_current_site
app_1 | return Site.objects.get_current(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 61, in get_current
app_1 | return self._get_site_by_request(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 45, in _get_site_by_request
app_1 | SITE_CACHE[domain] = self.get(domain__iexact=domain)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
app_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/query.py", line 496, in get
app_1 | raise self.model.DoesNotExist(
app_1 | django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.
app_1 | [10/Aug/2022 00:54:40] "GET /favicon.ico HTTP/1.1" 500 102265
app_1 | Internal Server Error: /favicon.ico
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 39, in _get_site_by_request
app_1 | SITE_CACHE[host] = self.get(domain__iexact=host)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
app_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/query.py", line 496, in get
app_1 | raise self.model.DoesNotExist(
app_1 | django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
app_1 | response = get_response(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/utils/deprecation.py", line 136, in call
app_1 | response = self.process_response(request, response)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/flatpages/middleware.py", line 12, in process_response
app_1 | return flatpage(request, request.path_info)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/flatpages/views.py", line 35, in flatpage
app_1 | site_id = get_current_site(request).id
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/shortcuts.py", line 14, in get_current_site
app_1 | return Site.objects.get_current(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 61, in get_current
app_1 | return self._get_site_by_request(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 45, in _get_site_by_request
app_1 | SITE_CACHE[domain] = self.get(domain__iexact=domain)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
app_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/query.py", line 496, in get
app_1 | raise self.model.DoesNotExist(
app_1 | django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.
app_1 | [10/Aug/2022 00:54:50] "GET /favicon.ico HTTP/1.1" 500 102104
app_1 | [10/Aug/2022 00:55:03] "GET /login/twitter/ HTTP/1.1" 302 0
app_1 | {'request_id': 'bb545f2f-2a93-43de-a99b-eef8e155bae4', 'user_id': None, 'ip': '172.18.0.1', 'code': 500, 'request': 'GET /complete/twitter/?redirect_state=WABtzZUiZ7fRPucjU8Iy9IcVWSMY4pPn&oauth_token=7C32dwAAAAABfvViAAABgoKsP4A&oauth_verifier=uzLyRurzIdxLXOuJCA8g49vrkZG2za6a', 'event': 'request_failed', 'timestamp': '2022-08-09T12:55:06.541863Z', 'logger': 'django_structlog.middlewares.request', 'level': 'error'}
app_1 | Internal Server Error: /complete/twitter/
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
app_1 | response = get_response(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
app_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func
app_1 | response = view_func(request, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
app_1 | return view_func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/utils.py", line 46, in wrapper
app_1 | return func(request, backend, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/views.py", line 31, in complete
app_1 | return do_complete(request.backend, _do_login, user=request.user,
app_1 | File "/venv/lib/python3.9/site-packages/social_core/actions.py", line 45, in do_complete
app_1 | user = backend.complete(user=user, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 40, in complete
app_1 | return self.auth_complete(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 247, in wrapper
app_1 | return func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 181, in auth_complete
app_1 | return self.do_auth(access_token, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 247, in wrapper
app_1 | return func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 188, in do_auth
app_1 | data = self.user_data(access_token)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/twitter.py", line 37, in user_data
app_1 | return self.get_json(
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 242, in get_json
app_1 | return self.request(url, *args, **kwargs).json()
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 238, in request
app_1 | response.raise_for_status()
app_1 | File "/venv/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
app_1 | raise HTTPError(http_error_msg, response=self)
app_1 | requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true
app_1 | [10/Aug/2022 00:55:06] "GET /complete/twitter/?redirect_state=WABtzZUiZ7fRPucjU8Iy9IcVWSMY4pPn&oauth_token=7C32dwAAAAABfvViAAABgoKsP4A&oauth_verifier=uzLyRurzIdxLXOuJCA8g49vrkZG2za6a HTTP/1.1" 500 125200
app_1 | Internal Server Error: /favicon.ico
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 39, in _get_site_by_request
app_1 | SITE_CACHE[host] = self.get(domain__iexact=host)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
app_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/query.py", line 496, in get
app_1 | raise self.model.DoesNotExist(
app_1 | django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
app_1 | response = get_response(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/utils/deprecation.py", line 136, in call
app_1 | response = self.process_response(request, response)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/flatpages/middleware.py", line 12, in process_response
app_1 | return flatpage(request, request.path_info)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/flatpages/views.py", line 35, in flatpage
app_1 | site_id = get_current_site(request).id
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/shortcuts.py", line 14, in get_current_site
app_1 | return Site.objects.get_current(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 61, in get_current
app_1 | return self._get_site_by_request(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 45, in _get_site_by_request
app_1 | SITE_CACHE[domain] = self.get(domain__iexact=domain)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
app_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/query.py", line 496, in get
app_1 | raise self.model.DoesNotExist(
app_1 | django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.
app_1 | [10/Aug/2022 00:55:07] "GET /favicon.ico HTTP/1.1" 500 102265
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 247, in wrapper
app_1 | return func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 180, in auth_complete
app_1 | access_token = self.access_token(token)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 292, in access_token
app_1 | return self.get_querystring(self.access_token_url(),
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 245, in get_querystring
app_1 | return parse_qs(self.request(url, *args, **kwargs).text)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 238, in request
app_1 | response.raise_for_status()
app_1 | File "/venv/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
app_1 | raise HTTPError(http_error_msg, response=self)
app_1 | requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.twitter.com/oauth/access_token
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
app_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func
app_1 | response = view_func(request, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
app_1 | return view_func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/utils.py", line 46, in wrapper
app_1 | return func(request, backend, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/views.py", line 31, in complete
app_1 | return do_complete(request.backend, _do_login, user=request.user,
app_1 | File "/venv/lib/python3.9/site-packages/social_core/actions.py", line 45, in do_complete
app_1 | user = backend.complete(user=user, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 40, in complete
app_1 | return self.auth_complete(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 252, in wrapper
app_1 | raise AuthForbidden(args[0])
app_1 | social_core.exceptions.AuthForbidden: Your credentials aren't allowed
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
app_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func
app_1 | response = view_func(request, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
app_1 | return view_func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/utils.py", line 46, in wrapper
app_1 | return func(request, backend, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/views.py", line 31, in complete
app_1 | return do_complete(request.backend, _do_login, user=request.user,
app_1 | File "/venv/lib/python3.9/site-packages/social_core/actions.py", line 45, in do_complete
app_1 | user = backend.complete(user=user, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 40, in complete
app_1 | return self.auth_complete(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 247, in wrapper
app_1 | return func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 181, in auth_complete
app_1 | return self.do_auth(access_token, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 247, in wrapper
app_1 | return func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 188, in do_auth
app_1 | data = self.user_data(access_token)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/twitter.py", line 37, in user_data
app_1 | return self.get_json(
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 242, in get_json
app_1 | return self.request(url, *args, **kwargs).json()
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 238, in request
app_1 | response.raise_for_status()
app_1 | File "/venv/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
app_1 | raise HTTPError(http_error_msg, response=self)
app_1 | requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true
app_1 | {'request_id': '22e3c956-a516-4fb6-9a30-bed99aaa695f', 'user_id': None, 'ip': '172.18.0.1', 'code': 500, 'request': 'GET /complete/twitter/?redirect_state=WABtzZUiZ7fRPucjU8Iy9IcVWSMY4pPn&oauth_token=7C32dwAAAAABfvViAAABgoKsP4A&oauth_verifier=uzLyRurzIdxLXOuJCA8g49vrkZG2za6a', 'event': 'request_failed', 'timestamp': '2022-08-09T12:59:30.843690Z', 'logger': 'django_structlog.middlewares.request', 'level': 'error'}
app_1 | Internal Server Error: /complete/twitter/
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 247, in wrapper
app_1 | return func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 180, in auth_complete
app_1 | access_token = self.access_token(token)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 292, in access_token
app_1 | return self.get_querystring(self.access_token_url(),
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 245, in get_querystring
app_1 | return parse_qs(self.request(url, *args, **kwargs).text)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 238, in request
app_1 | response.raise_for_status()
app_1 | File "/venv/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
app_1 | raise HTTPError(http_error_msg, response=self)
app_1 | requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.twitter.com/oauth/access_token
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
app_1 | response = get_response(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
app_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func
app_1 | response = view_func(request, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
app_1 | return view_func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/utils.py", line 46, in wrapper
app_1 | return func(request, backend, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/views.py", line 31, in complete
app_1 | return do_complete(request.backend, _do_login, user=request.user,
app_1 | File "/venv/lib/python3.9/site-packages/social_core/actions.py", line 45, in do_complete
app_1 | user = backend.complete(user=user, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 40, in complete
app_1 | return self.auth_complete(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 252, in wrapper
app_1 | raise AuthForbidden(args[0])
app_1 | social_core.exceptions.AuthForbidden: Your credentials aren't allowed
app_1 | [10/Aug/2022 00:59:31] "GET /complete/twitter/?redirect_state=WABtzZUiZ7fRPucjU8Iy9IcVWSMY4pPn&oauth_token=7C32dwAAAAABfvViAAABgoKsP4A&oauth_verifier=uzLyRurzIdxLXOuJCA8g49vrkZG2za6a HTTP/1.1" 500 119804
app_1 | Internal Server Error: /favicon.ico
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 39, in _get_site_by_request
app_1 | SITE_CACHE[host] = self.get(domain__iexact=host)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
app_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/query.py", line 496, in get
app_1 | raise self.model.DoesNotExist(
app_1 | django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
app_1 | response = get_response(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/utils/deprecation.py", line 136, in call
app_1 | response = self.process_response(request, response)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/flatpages/middleware.py", line 12, in process_response
app_1 | return flatpage(request, request.path_info)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/flatpages/views.py", line 35, in flatpage
app_1 | site_id = get_current_site(request).id
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/shortcuts.py", line 14, in get_current_site
app_1 | return Site.objects.get_current(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 61, in get_current
app_1 | return self._get_site_by_request(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 45, in _get_site_by_request
app_1 | SITE_CACHE[domain] = self.get(domain__iexact=domain)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
app_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/query.py", line 496, in get
app_1 | raise self.model.DoesNotExist(
app_1 | django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.
app_1 | [10/Aug/2022 00:59:31] "GET /favicon.ico HTTP/1.1" 500 102265
app_1 | Internal Server Error: /favicon.ico
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 39, in _get_site_by_request
app_1 | SITE_CACHE[host] = self.get(domain__iexact=host)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
app_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/query.py", line 496, in get
app_1 | raise self.model.DoesNotExist(
app_1 | django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
app_1 | response = get_response(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/utils/deprecation.py", line 136, in call
app_1 | response = self.process_response(request, response)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/flatpages/middleware.py", line 12, in process_response
app_1 | return flatpage(request, request.path_info)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/flatpages/views.py", line 35, in flatpage
app_1 | site_id = get_current_site(request).id
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/shortcuts.py", line 14, in get_current_site
app_1 | return Site.objects.get_current(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 61, in get_current
app_1 | return self._get_site_by_request(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 45, in _get_site_by_request
app_1 | SITE_CACHE[domain] = self.get(domain__iexact=domain)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
app_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/query.py", line 496, in get
app_1 | raise self.model.DoesNotExist(
app_1 | django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.
app_1 | [10/Aug/2022 00:59:34] "GET /favicon.ico HTTP/1.1" 500 102104
app_1 | [10/Aug/2022 00:59:38] "GET /login/twitter/ HTTP/1.1" 302 0
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 247, in wrapper
app_1 | return func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 180, in auth_complete
app_1 | access_token = self.access_token(token)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 292, in access_token
app_1 | return self.get_querystring(self.access_token_url(),
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 245, in get_querystring
app_1 | return parse_qs(self.request(url, *args, **kwargs).text)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 238, in request
app_1 | response.raise_for_status()
app_1 | File "/venv/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
app_1 | raise HTTPError(http_error_msg, response=self)
app_1 | requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.twitter.com/oauth/access_token
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
app_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func
app_1 | response = view_func(request, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
app_1 | return view_func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/utils.py", line 46, in wrapper
app_1 | return func(request, backend, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/views.py", line 31, in complete
app_1 | return do_complete(request.backend, _do_login, user=request.user,
app_1 | File "/venv/lib/python3.9/site-packages/social_core/actions.py", line 45, in do_complete
app_1 | user = backend.complete(user=user, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 40, in complete
app_1 | return self.auth_complete(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 252, in wrapper
app_1 | raise AuthForbidden(args[0])
app_1 | social_core.exceptions.AuthForbidden: Your credentials aren't allowed
app_1 | {'request_id': 'cb0b8b8f-4ebb-49ba-b8ce-9d9262caf6bb', 'user_id': None, 'ip': '172.18.0.1', 'code': 500, 'request': 'GET /complete/twitter/?redirect_state=WABtzZUiZ7fRPucjU8Iy9IcVWSMY4pPn&oauth_token=Jwb5mQAAAAABfvViAAABgoKwdBw&oauth_verifier=7JkSU6dJDfyYnuNi7HhO2CL9SS99vgsx', 'event': 'request_failed', 'timestamp': '2022-08-09T12:59:40.486880Z', 'logger': 'django_structlog.middlewares.request', 'level': 'error'}
app_1 | Internal Server Error: /complete/twitter/
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
app_1 | response = get_response(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
app_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func
app_1 | response = view_func(request, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
app_1 | return view_func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/utils.py", line 46, in wrapper
app_1 | return func(request, backend, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/views.py", line 31, in complete
app_1 | return do_complete(request.backend, _do_login, user=request.user,
app_1 | File "/venv/lib/python3.9/site-packages/social_core/actions.py", line 45, in do_complete
app_1 | user = backend.complete(user=user, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 40, in complete
app_1 | return self.auth_complete(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 247, in wrapper
app_1 | return func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 181, in auth_complete
app_1 | return self.do_auth(access_token, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 247, in wrapper
app_1 | return func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 188, in do_auth
app_1 | data = self.user_data(access_token)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/twitter.py", line 37, in user_data
app_1 | return self.get_json(
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 242, in get_json
app_1 | return self.request(url, *args, **kwargs).json()
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 238, in request
app_1 | response.raise_for_status()
app_1 | File "/venv/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
app_1 | raise HTTPError(http_error_msg, response=self)
app_1 | requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true
app_1 | [10/Aug/2022 00:59:40] "GET /complete/twitter/?redirect_state=WABtzZUiZ7fRPucjU8Iy9IcVWSMY4pPn&oauth_token=Jwb5mQAAAAABfvViAAABgoKwdBw&oauth_verifier=7JkSU6dJDfyYnuNi7HhO2CL9SS99vgsx HTTP/1.1" 500 125200
app_1 | Internal Server Error: /favicon.ico
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 39, in _get_site_by_request
app_1 | SITE_CACHE[host] = self.get(domain__iexact=host)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
app_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/query.py", line 496, in get
app_1 | raise self.model.DoesNotExist(
app_1 | django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
app_1 | response = get_response(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/utils/deprecation.py", line 136, in call
app_1 | response = self.process_response(request, response)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/flatpages/middleware.py", line 12, in process_response
app_1 | return flatpage(request, request.path_info)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/flatpages/views.py", line 35, in flatpage
app_1 | site_id = get_current_site(request).id
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/shortcuts.py", line 14, in get_current_site
app_1 | return Site.objects.get_current(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 61, in get_current
app_1 | return self._get_site_by_request(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 45, in _get_site_by_request
app_1 | SITE_CACHE[domain] = self.get(domain__iexact=domain)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
app_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/query.py", line 496, in get
app_1 | raise self.model.DoesNotExist(
app_1 | django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.
app_1 | [10/Aug/2022 00:59:41] "GET /favicon.ico HTTP/1.1" 500 102265
app_1 | {'request_id': 'a0137e09-fa95-4687-b892-20a7909d9924', 'user_id': None, 'ip': '172.18.0.1', 'code': 500, 'request': 'GET /complete/twitter/?redirect_state=WABtzZUiZ7fRPucjU8Iy9IcVWSMY4pPn&oauth_token=Jwb5mQAAAAABfvViAAABgoKwdBw&oauth_verifier=7JkSU6dJDfyYnuNi7HhO2CL9SS99vgs', 'event': 'request_failed', 'timestamp': '2022-08-09T13:00:18.765150Z', 'logger': 'django_structlog.middlewares.request', 'level': 'error'}
app_1 | Internal Server Error: /complete/twitter/
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 247, in wrapper
app_1 | return func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 180, in auth_complete
app_1 | access_token = self.access_token(token)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 292, in access_token
app_1 | return self.get_querystring(self.access_token_url(),
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 245, in get_querystring
app_1 | return parse_qs(self.request(url, *args, **kwargs).text)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 238, in request
app_1 | response.raise_for_status()
app_1 | File "/venv/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
app_1 | raise HTTPError(http_error_msg, response=self)
app_1 | requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.twitter.com/oauth/access_token
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
app_1 | response = get_response(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
app_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func
app_1 | response = view_func(request, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
app_1 | return view_func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/utils.py", line 46, in wrapper
app_1 | return func(request, backend, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/views.py", line 31, in complete
app_1 | return do_complete(request.backend, _do_login, user=request.user,
app_1 | File "/venv/lib/python3.9/site-packages/social_core/actions.py", line 45, in do_complete
app_1 | user = backend.complete(user=user, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 40, in complete
app_1 | return self.auth_complete(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 252, in wrapper
app_1 | raise AuthForbidden(args[0])
app_1 | social_core.exceptions.AuthForbidden: Your credentials aren't allowed
app_1 | [10/Aug/2022 01:00:18] "GET /complete/twitter/?redirect_state=WABtzZUiZ7fRPucjU8Iy9IcVWSMY4pPn&oauth_token=Jwb5mQAAAAABfvViAAABgoKwdBw&oauth_verifier=7JkSU6dJDfyYnuNi7HhO2CL9SS99vgs HTTP/1.1" 500 119645
app_1 | Internal Server Error: /favicon.ico
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 39, in _get_site_by_request
app_1 | SITE_CACHE[host] = self.get(domain__iexact=host)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
app_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/query.py", line 496, in get
app_1 | raise self.model.DoesNotExist(
app_1 | django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
app_1 | response = get_response(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/utils/deprecation.py", line 136, in call
app_1 | response = self.process_response(request, response)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/flatpages/middleware.py", line 12, in process_response
app_1 | return flatpage(request, request.path_info)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/flatpages/views.py", line 35, in flatpage
app_1 | site_id = get_current_site(request).id
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/shortcuts.py", line 14, in get_current_site
app_1 | return Site.objects.get_current(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 61, in get_current
app_1 | return self._get_site_by_request(request)
app_1 | File "/venv/lib/python3.9/site-packages/django/contrib/sites/models.py", line 45, in _get_site_by_request
app_1 | SITE_CACHE[domain] = self.get(domain__iexact=domain)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
app_1 | return getattr(self.get_queryset(), name)(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/db/models/query.py", line 496, in get
app_1 | raise self.model.DoesNotExist(
app_1 | django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.
app_1 | [10/Aug/2022 01:00:19] "GET /favicon.ico HTTP/1.1" 500 102264
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
app_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func
app_1 | response = view_func(request, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
app_1 | return view_func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/utils.py", line 46, in wrapper
app_1 | return func(request, backend, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/views.py", line 31, in complete
app_1 | return do_complete(request.backend, _do_login, user=request.user,
app_1 | File "/venv/lib/python3.9/site-packages/social_core/actions.py", line 45, in do_complete
app_1 | user = backend.complete(user=user, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 40, in complete
app_1 | return self.auth_complete(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 247, in wrapper
app_1 | return func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 181, in auth_complete
app_1 | return self.do_auth(access_token, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 247, in wrapper
app_1 | return func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 188, in do_auth
app_1 | data = self.user_data(access_token)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/twitter.py", line 37, in user_data
app_1 | return self.get_json(
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 242, in get_json
app_1 | return self.request(url, *args, **kwargs).json()
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 238, in request
app_1 | response.raise_for_status()
app_1 | File "/venv/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
app_1 | raise HTTPError(http_error_msg, response=self)
app_1 | requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 247, in wrapper
app_1 | return func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 180, in auth_complete
app_1 | access_token = self.access_token(token)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/oauth.py", line 292, in access_token
app_1 | return self.get_querystring(self.access_token_url(),
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 245, in get_querystring
app_1 | return parse_qs(self.request(url, *args, **kwargs).text)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 238, in request
app_1 | response.raise_for_status()
app_1 | File "/venv/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
app_1 | raise HTTPError(http_error_msg, response=self)
app_1 | requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.twitter.com/oauth/access_token
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
app_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func
app_1 | response = view_func(request, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
app_1 | return view_func(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/utils.py", line 46, in wrapper
app_1 | return func(request, backend, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_django/views.py", line 31, in complete
app_1 | return do_complete(request.backend, _do_login, user=request.user,
app_1 | File "/venv/lib/python3.9/site-packages/social_core/actions.py", line 45, in do_complete
app_1 | user = backend.complete(user=user, *args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/backends/base.py", line 40, in complete
app_1 | return self.auth_complete(*args, **kwargs)
app_1 | File "/venv/lib/python3.9/site-packages/social_core/utils.py", line 252, in wrapper
app_1 | raise AuthForbidden(args[0])
app_1 | social_core.exceptions.AuthForbidden: Your credentials aren't allowed

@AlcantaraMC
Copy link
Author

Addendum: My OS is Ubuntu 22.04 LTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant