RealmTeam / django-rest-framework-social-oauth2

python-social-auth and oauth2 support for django-rest-framework
MIT License
1.06k stars 191 forks source link

'NoneType' object has no attribute 'decode' #157

Closed theomendes closed 6 years ago

theomendes commented 6 years ago

File "/Users/#####/Documents/GitHub/#####/env/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 115, in _get_post self._load_post_and_files() File "/Users/#####/Documents/GitHub/#####/env/lib/python3.6/site-packages/django/http/request.py", line 290, in _load_post_and_files self._post, self._files = self.parse_file_upload(self.META, data) File "/Users/#####/Documents/GitHub/#####/env/lib/python3.6/site-packages/django/http/request.py", line 248, in parse_file_upload parser = MultiPartParser(META, post_data, self.upload_handlers, self.encoding) File "/Users/#####/Documents/GitHub/#####/env/lib/python3.6/site-packages/django/http/multipartparser.py", line 72, in __init__ raise MultiPartParserError('Invalid boundary in multipart: %s' % boundary.decode()) AttributeError: 'NoneType' object has no attribute 'decode' [20/May/2018 02:55:54] "POST /v1/auth/convert-token HTTP/1.1" 500 59 [20/May/2018 02:55:54] "GET /v1/auth/convert-token HTTP/1.1" 405 6259

I have this error when I try to convert a Facebook token, anyone knows how to fix this?