Open vnbang2003 opened 8 years ago
On Sat, Jul 23, 2016 at 3:14 PM, Vijay notifications@github.com wrote:
I see this email coming quite often when user login from Github,
Internal Server Error: /accounts/github/login/callback/ Traceback (most recent call last): File "/opt/envs/wye/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, _callback_args, _callback_kwargs) File "/opt/envs/wye/local/lib/python2.7/site-packages/allauth/socialaccount/providers/oauth2/views.py", line 62, in view return self.dispatch(request, _args, _kwargs) File "/opt/envs/wye/local/lib/python2.7/site-packages/allauth/socialaccount/providers/oauth2/views.py", line 126, in dispatch response=access_token) File "/opt/envs/wye/local/lib/python2.7/site-packages/allauth/socialaccount/providers/github/views.py", line 22, in complete_login extra_data['email'] = self.get_email(token) File "/opt/envs/wye/local/lib/python2.7/site-packages/allauth/socialaccount/providers/github/views.py", line 32, in get_email email = emails[0] KeyError: 0
@kracekumar https://github.com/kracekumar @vigneshsarma https://github.com/vigneshsarma Is this by chance to do with configurations ?
Looks like email is missing.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pythonindia/wye/issues/280, or mute the thread https://github.com/notifications/unsubscribe-auth/AATCeTQ1YURIcgfwRgbbtm2uz0pq3UUtks5qYeJ1gaJpZM4JTU3Y .
Regards Kracekumar Ramaraj http://kracekumar.com
@kracekumar Am not very familiar with this section of code. Can you do needful for it work similar to junction ?
I see this email coming quite often when user login from Github,
Internal Server Error: /accounts/github/login/callback/ Traceback (most recent call last): File "/opt/envs/wye/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, _callback_args, _callback_kwargs) File "/opt/envs/wye/local/lib/python2.7/site-packages/allauth/socialaccount/providers/oauth2/views.py", line 62, in view return self.dispatch(request, _args, _kwargs) File "/opt/envs/wye/local/lib/python2.7/site-packages/allauth/socialaccount/providers/oauth2/views.py", line 126, in dispatch response=access_token) File "/opt/envs/wye/local/lib/python2.7/site-packages/allauth/socialaccount/providers/github/views.py", line 22, in complete_login extra_data['email'] = self.get_email(token) File "/opt/envs/wye/local/lib/python2.7/site-packages/allauth/socialaccount/providers/github/views.py", line 32, in get_email email = emails[0] KeyError: 0
@kracekumar @vigneshsarma Is this by chance to do with configurations ?