Discussion:
[bottlepy] Bottle fails with paste or cherrypy with chunked POST request
Amit
2016-04-05 07:15:17 UTC
Permalink
If I send two files and a JSON string as multipart/form-data with
transfer-encoding set to "chunked" to a Bottle application running on the
internal wsgiref server, everything works fine and I can see the files and
the JSON string in the request

If I do the same with app.run(server='cherrypy' or 'paste') I get a
400 Error while parsing chunked transfer body. How do I get it to work
with these other servers just like it does with the internal wsgi server

This issue was also posted by somebody else on Github as Issue# 700
(https://github.com/bottlepy/bottle/issues/700)

Can somebody please help?

Thanks,
Amit
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Derek Bartron
2016-06-17 18:19:43 UTC
Permalink
*class *cherrypy.wsgiserver.ChunkedRFile(*rfile*, *maxlen*, *bufsize=8192*)
<https://cherrypy.readthedocs.io/en/3.2.6/refman/wsgiserver/init.html#cherrypy.wsgiserver.ChunkedRFile>

Wraps a file-like object, returning an empty string when exhausted.

This class is intended to provide a conforming wsgi.input value for request
entities that have been encoded with the ‘chunked’ transfer encoding.

https://cherrypy.readthedocs.io/en/3.2.6/refman/wsgiserver/init.html
Post by Amit
If I send two files and a JSON string as multipart/form-data with
transfer-encoding set to "chunked" to a Bottle application running on the
internal wsgiref server, everything works fine and I can see the files and
the JSON string in the request
If I do the same with app.run(server='cherrypy' or 'paste') I get a
400 Error while parsing chunked transfer body. How do I get it to work
with these other servers just like it does with the internal wsgi server
This issue was also posted by somebody else on Github as Issue# 700 (
https://github.com/bottlepy/bottle/issues/700)
Can somebody please help?
Thanks,
Amit
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...