On 04/25/2013 02:42 PM, Iain Duncan wrote:
Hi folks, I have a custom file uploading utility in a pyramid app, and
it's using an older version of webob, 1.1 to be precise. I'm getting the
following when uploading a large file, and it seems from the web ob docs
that this should be OK in webob 1.1. I also read some mention that it
might be a server issue, but I get the same problem whether hitting
paster or modwsgi. Not really sure where to look to deal with it and
wondering if anyone else has had a similar issue and can comment?
Thanks!
Iain
Exception happened during processing of request from ('127.0.0.1', 33105)
"/home/jordans/Jordans/eggs/WebOb-1.1-py2.7.egg/webob/request.py", line
1311, in _check_disconnect
1147 + "(%d more bytes were expected)" % self.remaining
1148 DisconnectionError: The client disconnected while sending the
POST/PUT body (601187 more bytes were expected)
So far I have not detected this error as the fault of a particular piece
of software in the framework stack.
I have seen this error if the user who is uploading the file navigates
away, retry the submit or similar actions without waiting for the upload
to finish.
In those cases, some clear indication for the user about the progress of
the action (or maybe blocking some actions with js) should help to
prevent the impatience. Other than that, a clear message for the user to
let them know the upload was unsuccessful should be of help too.
I guess a network problem on the user side might trigger this error too
but so far I didn't particularly test it.
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.