2008/12/31 whuuu <[email protected]>:
>
> hey guys,
>
> i got a really strange problem:
>
> Do you have any idea what could cause 'Request body truncated' when
> uploading files using mod_wsgi?
> The error just appears when using Opera as browser and mod_wsgi.
> Upload files using Firefox works (even with mod_wsgi) and uploading
> files using Opera with pylons' development server works, as well.
>
> mod_wsgi (pid=12318): Exception occurred processing WSGI script '/home/
> test/env/projects/portal_en.wsgi'.
> Traceback (most recent call last):
> File "/home/test/env/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/
> paste/cascade.py", line 102, in __call__
>     raise IOError("Request body truncated")
> IOError: Request body truncate
>
> I'm using mod_wsgi 2.3 (lenny) and running my app in daemon mode.

Do you have Apache setup to allow compressed request content.

Ie., Apache has:

  SetInputFilter DEFLATE

and HTTP request is setting:

  Content-Encoding: gzip

WSGI doesn't really support mutating input filters and the checks that
Paste cascade is doing would bork if such a thing it present.

Otherwise, I need to look more closely at what Paste cascade is doing
any whether it guarantees that all applications in cascade will see
full input, or if earlier one consuming any input will mean latter
will not see it all.

Graham

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to