Created
October 6, 2015 11:45
-
-
Save devoto13/b4023f44b5aad921061f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Internal Server Error: /v0.5/channels/1/posts/ | |
Traceback (most recent call last): | |
File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py", line 111, in get_response | |
response = wrapped_callback(request, *callback_args, **callback_kwargs) | |
File "/usr/local/lib/python3.4/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view | |
return view_func(*args, **kwargs) | |
File "/usr/local/lib/python3.4/dist-packages/rest_framework/viewsets.py", line 87, in view | |
return self.dispatch(request, *args, **kwargs) | |
File "/usr/local/lib/python3.4/dist-packages/rest_framework/views.py", line 466, in dispatch | |
response = self.handle_exception(exc) | |
File "/usr/local/lib/python3.4/dist-packages/rest_framework/views.py", line 463, in dispatch | |
response = handler(request, *args, **kwargs) | |
File "/usr/local/lib/python3.4/dist-packages/rest_framework/mixins.py", line 20, in create | |
serializer.is_valid(raise_exception=True) | |
File "/usr/local/lib/python3.4/dist-packages/rest_framework/serializers.py", line 205, in is_valid | |
raise ValidationError(self.errors) | |
File "/usr/local/lib/python3.4/dist-packages/rest_framework/serializers.py", line 493, in errors | |
return ReturnDict(ret, serializer=self) | |
File "/usr/local/lib/python3.4/dist-packages/rest_framework/utils/serializer_helpers.py", line 19, in __init__ | |
super(ReturnDict, self).__init__(*args, **kwargs) | |
File "/usr/lib/python3.4/collections/__init__.py", line 60, in __init__ | |
self.__update(*args, **kwds) | |
File "/usr/lib/python3.4/_collections_abc.py", line 597, in update | |
for key, value in other: | |
ValueError: too many values to unpack (expected 2) | |
Request repr(): | |
<WSGIRequest | |
path:/v0.5/channels/1/posts/, | |
GET:<QueryDict: {}>, | |
POST:{'caption': '', | |
'close_at': '', | |
'content': '', | |
'csrfmiddlewaretoken': 'N11jfbHkoYcrEOic0W1hNxb6KLY6jYtc', | |
'external_url': '', | |
'image_id': '866', | |
'post_type': 'fasdfadsf', | |
'scheduled_to': '', | |
'state': 'draft', | |
'title': ''}, | |
COOKIES:{'csrftoken': 'N11jfbHkoYcrEOic0W1hNxb6KLY6jYtc', | |
'sessionid': 'c55mbbwhyd7yedtezvou7urbwrydq2ww'}, | |
META:{'CONTENT_LENGTH': '1055', | |
'CONTENT_TYPE': 'multipart/form-data; ' | |
'boundary=----WebKitFormBoundaryoO77xM6gUe36QZ2A', | |
'CSRF_COOKIE': 'N11jfbHkoYcrEOic0W1hNxb6KLY6jYtc', | |
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', | |
'HTTP_ACCEPT_ENCODING': 'gzip, deflate', | |
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4,sv;q=0.2,ja;q=0.2', | |
'HTTP_CACHE_CONTROL': 'max-age=0', | |
'HTTP_CONNECTION': 'close', | |
'HTTP_COOKIE': 'sessionid=c55mbbwhyd7yedtezvou7urbwrydq2ww; ' | |
'csrftoken=N11jfbHkoYcrEOic0W1hNxb6KLY6jYtc', | |
'HTTP_HOST': 'api.nexthub.com', | |
'HTTP_ORIGIN': 'https://api.nexthub.com', | |
'HTTP_REFERER': 'https://api.nexthub.com/v0.5/channels/1/posts/', | |
'HTTP_UPGRADE_INSECURE_REQUESTS': '1', | |
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 ' | |
'(KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36', | |
'HTTP_X_FORWARDED_FOR': '194.132.212.73', | |
'HTTP_X_FORWARDED_PROTO': 'https', | |
'HTTP_X_REAL_IP': '194.132.212.73', | |
'PATH_INFO': '/v0.5/channels/1/posts/', | |
'QUERY_STRING': '', | |
'RAW_URI': '/v0.5/channels/1/posts/', | |
'REMOTE_ADDR': '10.0.0.44', | |
'REMOTE_PORT': '46535', | |
'REQUEST_METHOD': 'POST', | |
'SCRIPT_NAME': '', | |
'SERVER_NAME': '0.0.0.0', | |
'SERVER_PORT': '8000', | |
'SERVER_PROTOCOL': 'HTTP/1.0', | |
'SERVER_SOFTWARE': 'gunicorn/19.3.0', | |
'gunicorn.socket': <socket.socket fd=17, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('10.0.0.13', 8000), raddr=('10.0.0.44', 46535)>, | |
'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f5f3c3cfcc0>, | |
'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, | |
'wsgi.input': <gunicorn.http.body.Body object at 0x7f5f3c3cffd0>, | |
'wsgi.multiprocess': True, | |
'wsgi.multithread': False, | |
'wsgi.run_once': False, | |
'wsgi.url_scheme': 'http', | |
'wsgi.version': (1, 0)}> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment