BlitzKraft / saythanks.io

Spreading Thankfulness in Open Source.

Home Page:https://saythanks.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KeyError: 'nickname' when signing up with github

cvzi opened this issue · comments

commented

Describe the bug
When I try to sign up with github I get an error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1997, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python3.6/site-packages/whitenoise/base.py", line 66, in __call__
    return self.application(environ, start_response)
  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1985, in wsgi_app
    response = self.handle_exception(e)
  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1540, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/root/Desktop/saythanks.io/saythanks/core.py", line 328, in callback_handling
    nickname = user_detail_info['nickname']
KeyError: 'nickname'

To Reproduce
Steps to reproduce the behaviour:

  1. Click on "Create Your Thankfulness Inbox"
  2. Click "Sign up with GitHub"
  3. Opens github.com
  4. Grant permission on github.com
  5. Redirects to https://saythanks.io/callback?code=AbCdEfG
  6. See error

Screenshots
Screenshot 2022-05-05 at 14-16-52 KeyError 'nickname' __ Werkzeug Debugger

I can reproduce this

same bug persists still :(

@cvzi, @rachejazz , @wasi-master

Strange! My saythanks inbox works okay! @Pavithratrdev will coordinate on your errors and ensure they are fixed.

I beleive the inbox works perfectly, it's just that we can't sign up using our github account

@rachejazz thanks, we will revert back with a fix shortly.

@cvzi, @rachejazz , @wasi-master : I'm hoping the problem was with the generation of Auth0 keys; it has been fixed now.
Could you please try again?

commented

Yes it works for me

Works now. Thank you so much!

Working for me as well 👍