[Twisted-Python] treq POST abborting with: err: ('Could not adapt', '{"....", "..."} <InterfaceClass twisted.web.iweb.IBodyProducer>)
Glyph Lefkowitz
glyph at twistedmatrix.com
Sun Jan 8 19:49:13 MST 2017
> On Jan 6, 2017, at 11:03 AM, steven meiers <commercials24 at yahoo.de> wrote:
>
> hi,
>
>
> sending a simple post request with a body (cookies) results in a error
> here.
>
> im using python 3.x with the latest twisted and treq installed via pip
> in a virtualenv.
Something that we discussed on IRC but did not come up in the mailing list thread may be the one issue that *should* be fixed in treq:
Because of this issue, this example - http://treq.readthedocs.io/en/latest/#post <http://treq.readthedocs.io/en/latest/#post> - which the OP was following, doesn't work on Python 3.
We should fix the docs so that it does.
-glyph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20170108/ab9ee5d5/attachment-0002.html>
More information about the Twisted-Python
mailing list