flashingpumpkin/django-socialregistration — Issue #134: KeyError: 'access_token'KeyError
Author: diafygi
Created: 2011-12-15 23:08:56+00:00
State: open

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 47, in view
return self.dispatch(request, *args, **kwargs)

File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 68, in dispatch
return handler(request, *args, **kwargs)

File "/home/user/python-manual-installs/src/socialregistration/socialregistration/views.py", line 210, in get
client.complete(dict(request.GET.items()))

File "/home/user/python-manual-installs/src/socialregistration/socialregistration/clients/oauth.py", line 285, in complete
return self.get_access_token(code=GET.get('code'))

File "/home/user/python-manual-installs/src/socialregistration/socialregistration/clients/oauth.py", line 273, in get_access_token
self._access_token = self._get_access_token(code, **params)['access_token']

KeyError: 'access_token'

'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7',