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

Discord Login issue with redis #221

Open
acocalypso opened this issue Aug 8, 2021 · 0 comments
Open

Discord Login issue with redis #221

acocalypso opened this issue Aug 8, 2021 · 0 comments

Comments

@acocalypso
Copy link

Login with Discord is sometimes not working.

File "/home/aco/OSM-premium/rocketmad/app.py", line 607, in auth
    sessions = get_sessions(r)
  File "/home/aco/OSM-premium/rocketmad/utils.py", line 1319, in get_sessions
    data = pickle.loads(redis_server.get(key))
TypeError: a bytes-like object is required, not 'NoneType'
2021-08-08 14:17:54,887 [     DummyThread-1][           app][   ERROR] Exception on /auth/discord [GET]
Traceback (most recent call last):
  File "/home/aco/osm_env/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/aco/osm_env/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/aco/osm_env/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/aco/osm_env/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/home/aco/osm_env/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/aco/osm_env/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/aco/OSM-premium/rocketmad/app.py", line 607, in auth
    sessions = get_sessions(r)
  File "/home/aco/OSM-premium/rocketmad/utils.py", line 1319, in  get_sessions
    data = pickle.loads(redis_server.get(key))
TypeError: a bytes-like object is required, not 'NoneType'

Flushing redis db is a temp solution but this should be handled.

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