wgilpin / recruitment-ascee

2 stars 0 forks source link

Intermittent 500 on login #536

Closed mcgibbon closed 5 years ago

mcgibbon commented 5 years ago
[2019-05-17 12:18:20,666] ERROR in app: Exception on /auth/login [GET]
Traceback (most recent call last):
  File "/home/twine/python/recruitment-ascee/server/lib/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/twine/python/recruitment-ascee/server/lib/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/twine/python/recruitment-ascee/server/lib/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/twine/python/recruitment-ascee/server/lib/flask/_compat.py", line 35, in reraise
    raise value
  File "/home/twine/python/recruitment-ascee/server/lib/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/twine/python/recruitment-ascee/server/lib/flask/app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/twine/python/recruitment-ascee/server/routes/login.py", line 13, in api_login
    return login_helper('login')
  File "/home/twine/python/recruitment-ascee/server/login.py", line 36, in login_helper
    return route_to_app_home(current_user, character)
  File "/home/twine/python/recruitment-ascee/server/login.py", line 86, in route_to_app_home
    return login_helper('scopes', user=user)
  File "/home/twine/python/recruitment-ascee/server/login.py", line 41, in login_helper
    user_id = user.id
  File "/home/twine/python/recruitment-ascee/server/lib/werkzeug/local.py", line 347, in __getattr__
    return getattr(self._get_current_object(), name)
AttributeError: 'AnonymousUserMixin' object has no attribute 'id'
ERROR:root:An error occurred during a request.
Traceback (most recent call last):
  File "/home/twine/python/recruitment-ascee/server/lib/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/twine/python/recruitment-ascee/server/lib/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/twine/python/recruitment-ascee/server/lib/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/twine/python/recruitment-ascee/server/lib/flask/_compat.py", line 35, in reraise
    raise value
  File "/home/twine/python/recruitment-ascee/server/lib/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/twine/python/recruitment-ascee/server/lib/flask/app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/twine/python/recruitment-ascee/server/routes/login.py", line 13, in api_login
    return login_helper('login')
  File "/home/twine/python/recruitment-ascee/server/login.py", line 36, in login_helper
    return route_to_app_home(current_user, character)
  File "/home/twine/python/recruitment-ascee/server/login.py", line 86, in route_to_app_home
    return login_helper('scopes', user=user)
  File "/home/twine/python/recruitment-ascee/server/login.py", line 41, in login_helper
    user_id = user.id
  File "/home/twine/python/recruitment-ascee/server/lib/werkzeug/local.py", line 347, in __getattr__
    return getattr(self._get_current_object(), name)
AttributeError: 'AnonymousUserMixin' object has no attribute 'id'
mcgibbon commented 5 years ago

Closing as this was part of an ongoing update and has been fixed.