Hi,
a mobile user is not able to log in, displaying Bad server response. the following is an error log displaying while trying to login. tail -f /home/cchq/www/echis/log/django.log
Traceback (most recent call last):
File "/home/cchq/www/echis/releases/2021-02-11_19.06/python_env-3.6/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/home/cchq/www/echis/releases/2021-02-11_19.06/python_env-3.6/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/cchq/www/echis/releases/2021-02-11_19.06/python_env-3.6/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/cchq/www/echis/releases/2021-02-11_19.06/python_env-3.6/lib/python3.6/site-packages/sentry_sdk/integrations/django/views.py", line 67, in sentry_wrapped_callback
return callback(request, *args, **kwargs)
File "/home/cchq/www/echis/releases/2021-02-11_19.06/corehq/apps/domain/decorators.py", line 365, in _inner
return function_wrapper(fn)(request, *args, **kwargs)
File "/home/cchq/www/echis/releases/2021-02-11_19.06/corehq/apps/domain/decorators.py", line 257, in safe_fn_with_domain
return _inner(request, domain, *args, **kwargs)
File "/home/cchq/www/echis/releases/2021-02-11_19.06/corehq/apps/domain/decorators.py", line 537, in _inner
user = CouchUser.get_by_username(username)
File "/home/cchq/www/echis/releases/2021-02-11_19.06/python_env-3.6/lib/python3.6/site-packages/quickcache/quickcache.py", line 42, in inner
return helper(*args, **kwargs)
File "/home/cchq/www/echis/releases/2021-02-11_19.06/python_env-3.6/lib/python3.6/site-packages/quickcache/quickcache_helper.py", line 179, in call
return self.call(*args, **kwargs)
File "/home/cchq/www/echis/releases/2021-02-11_19.06/python_env-3.6/lib/python3.6/site-packages/quickcache/quickcache_helper.py", line 74, in call
content = self.fn(*args, **kwargs)
File "/home/cchq/www/echis/releases/2021-02-11_19.06/corehq/apps/users/models.py", line 1434, in get_by_username
username, ', '.join([row['id'] for row in result])
couchdbkit.exceptions.MultipleResultsFound: "gayi.1@fmoh-echis.commcarehq.org": 18acd6b211ad4aa7b8a7ee8a2c0d241f, 4b3a833a3be8468bb8f5c24f9b01c5f5
Looking at the user list, i didn't see any duplicates with gayi.1
as shown below