Skip to content

Instantly share code, notes, and snippets.

@ntucker
Created January 30, 2013 21:29
Show Gist options
  • Save ntucker/4677199 to your computer and use it in GitHub Desktop.
Save ntucker/4677199 to your computer and use it in GitHub Desktop.
UnreadablePostError: timed out
Stacktrace (most recent call last):
File "django/core/handlers/base.py", line 109, in get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
File "django/middleware/csrf.py", line 174, in process_view
request_csrf_token = request.POST.get('csrfmiddlewaretoken', '')
File "django/core/handlers/wsgi.py", line 198, in _get_post
self._load_post_and_files()
File "django/http/request.py", line 228, in _load_post_and_files
self._post, self._files = QueryDict(self.body, encoding=self._encoding), MultiValueDict()
File "django/http/request.py", line 186, in body
six.reraise(UnreadablePostError, UnreadablePostError(*e.args), sys.exc_info()[2])
File "django/http/request.py", line 184, in body
self._body = self.read()
File "django/http/request.py", line 242, in read
return self._stream.read(*args, **kwargs)
File "django/core/handlers/wsgi.py", line 98, in read
result = self.buffer + self._read_limited()
File "django/core/handlers/wsgi.py", line 92, in _read_limited
result = self.stream.read(size)
File "gunicorn/http/body.py", line 214, in read
data = self.reader.read(1024)
File "gunicorn/http/body.py", line 128, in read
data = self.unreader.read()
File "gunicorn/http/unreader.py", line 38, in read
return self.chunk()
File "gunicorn/http/unreader.py", line 63, in chunk
return self.sock.recv(self.mxchunk)
File "eventlet/greenio.py", line 238, in recv
timeout_exc=socket.timeout("timed out"))
File "eventlet/hubs/__init__.py", line 121, in trampoline
return hub.switch()
File "eventlet/hubs/hub.py", line 177, in switch
return self.greenlet.switch()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment