Issue #1108 invalid

timeout on POST

deecodameeko
created an issue

Hi, I have a script working in python and php that can post but am trying to use whurl and ios to send a post to my cherrypy api and it's failing with the following error:

File "/usr/lib/python2.6/site-packages/cherrypy/_cprequest.py", line 600, in respond
  self.process_body()
File "/usr/lib/python2.6/site-packages/cherrypy/_cprequest.py", line 722, in process_body
  keep_blank_values=1)
File "/usr/lib/python2.6/site-packages/cherrypy/_cpcgifs.py", line 8, in __init__
  cgi.FieldStorage.__init__(self, *args, **kwds)
File "/usr/lib64/python2.6/cgi.py", line 508, in __init__
  self.read_multi(environ, keep_blank_values, strict_parsing)
File "/usr/lib64/python2.6/cgi.py", line 637, in read_multi
  environ, keep_blank_values, strict_parsing)
File "/usr/lib/python2.6/site-packages/cherrypy/_cpcgifs.py", line 8, in __init__
  cgi.FieldStorage.__init__(self, *args, **kwds)
File "/usr/lib64/python2.6/cgi.py", line 510, in __init__
  self.read_single()
File "/usr/lib64/python2.6/cgi.py", line 647, in read_single
  self.read_lines()
File "/usr/lib64/python2.6/cgi.py", line 669, in read_lines
  self.read_lines_to_outerboundary()
File "/usr/lib/python2.6/site-packages/cherrypy/_cpcgifs.py", line 31, in read_lines_to_outerboundary
  line = self.fp.readline(1<<16)
File "/usr/lib/python2.6/site-packages/cherrypy/wsgiserver/__init__.py", line 206, in readline
  data = self.rfile.readline(size)
File "/usr/lib/python2.6/site-packages/cherrypy/wsgiserver/__init__.py", line 868, in readline
  data = self.recv(self._rbufsize)
File "/usr/lib/python2.6/site-packages/cherrypy/wsgiserver/__init__.py", line 747, in recv
  return self._sock.recv(size)
timeout: timed out

There's really no indication as to what the issue is. We have tried copying all the headers and body from the working script into whurl and still cannot get the script to work. Any help would be greatly appreciated.

Comments (7)

  1. deecodameeko reporter

    We ended up just using posting the script using key/value pairs in the form of a querystring since we never ended up having to upload files.

  2. Log in to comment