Skip to content

Instantly share code, notes, and snippets.

@IvanAnishchuk
Created July 8, 2016 12:25
Show Gist options
  • Save IvanAnishchuk/7160a289a1583f34ae135c5b87c22ee2 to your computer and use it in GitHub Desktop.
Save IvanAnishchuk/7160a289a1583f34ae135c5b87c22ee2 to your computer and use it in GitHub Desktop.
DOT traceback
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/rest_framework/views.py", line 452, in dispatch
response = self.handle_exception(exc)
File "/usr/local/lib/python2.7/site-packages/rest_framework/views.py", line 440, in dispatch
self.initial(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/rest_framework/views.py", line 355, in initial
self.check_permissions(request)
File "/usr/local/lib/python2.7/site-packages/rest_framework/views.py", line 301, in check_permissions
self.permission_denied(request)
File "/usr/local/lib/python2.7/site-packages/rest_framework/views.py", line 147, in permission_denied
if not request.successful_authenticator:
File "/usr/local/lib/python2.7/site-packages/rest_framework/request.py", line 497, in __getattribute__
six.reraise(info[0], info[1], info[2].tb_next)
File "/usr/local/lib/python2.7/site-packages/rest_framework/request.py", line 308, in successful_authenticator
self._authenticate()
File "/usr/local/lib/python2.7/site-packages/rest_framework/request.py", line 454, in _authenticate
user_auth_tuple = authenticator.authenticate(self)
File "/usr/local/lib/python2.7/site-packages/oauth2_provider/ext/rest_framework/authentication.py", line 18, in authenticate
valid, r = oauthlib_core.verify_request(request, scopes=[])
File "/usr/local/lib/python2.7/site-packages/oauth2_provider/oauth2_backends.py", line 165, in verify_request
uri, http_method, body, headers = self._extract_params(request)
File "/usr/local/lib/python2.7/site-packages/oauth2_provider/oauth2_backends.py", line 54, in _extract_params
body = urlencode(self.extract_body(request))
File "/usr/local/lib/python2.7/site-packages/oauth2_provider/oauth2_backends.py", line 182, in extract_body
body = json.loads(request.body.decode('utf-8')).items()
AttributeError: 'list' object has no attribute 'items'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment