meow icon indicating copy to clipboard operation
meow copied to clipboard

KeyError at /api/v1/auth/complete/meow/

Open stevennt opened this issue 3 years ago • 0 comments

After running Meow with docker-compose, I got to the Slack login screen and tried to login. There I encountered with this error: KeyError at /api/v1/auth/complete/meow/

Anyone having the same issue? Thanks.

image

image

Request Method: GET

2.2.6 KeyError 'user' /meow/meow/meow/backend.py in get_user_details, line 19 /usr/local/bin/python 3.6.13 ['/meow/meow', '/usr/local/lib/python36.zip', '/usr/local/lib/python3.6', '/usr/local/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/site-packages', '/meow'] Sat, 20 Mar 2021 10:05:18 -0700

Environment:

Request Method: GET Request URL: .....

Django Version: 2.2.6 Python Version: 3.6.13 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'webpack_loader', 'social_django', 'corsheaders', 'django_celery_beat', 'urls', 'user_profile', 'scheduler') Installed Middleware: ['corsheaders.middleware.CorsMiddleware', 'django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware']

Traceback:

File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner 34. response = get_response(request)

File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response 115. response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response 113. response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func 44. response = view_func(request, *args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view 54. return view_func(*args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/social_django/utils.py" in wrapper 49. return func(request, backend, *args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/social_django/views.py" in complete 33. *args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/social_core/actions.py" in do_complete 43. user = backend.complete(user=user, *args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/social_core/backends/base.py" in complete 40. return self.auth_complete(*args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/social_core/utils.py" in wrapper 251. return func(*args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/social_core/backends/oauth.py" in auth_complete 405. *args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/social_core/utils.py" in wrapper 251. return func(*args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/social_core/backends/oauth.py" in do_auth 416. return self.strategy.authenticate(*args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/social_django/strategy.py" in authenticate 107. return authenticate(*args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/init.py" in authenticate 73. user = backend.authenticate(request, **credentials)

File "/usr/local/lib/python3.6/site-packages/social_core/backends/base.py" in authenticate 80. return self.pipeline(pipeline, *args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/social_core/backends/base.py" in pipeline 83. out = self.run_pipeline(pipeline, pipeline_index, *args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/social_core/backends/base.py" in run_pipeline 113. result = func(*args, **out) or {}

File "/usr/local/lib/python3.6/site-packages/social_core/pipeline/social_auth.py" in social_details 5. return {'details': dict(backend.get_user_details(response), **details)}

File "/meow/meow/meow/backend.py" in get_user_details 42. raise e # throw it again so the system doesn't do continue

File "/meow/meow/meow/backend.py" in get_user_details 19. user = response['user']

Exception Type: KeyError at /api/v1/auth/complete/meow/ Exception Value: 'user'

stevennt avatar Mar 20 '21 17:03 stevennt