[Twisted-Python] treq POST abborting with: err: ('Could not adapt', '{"....", "..."} <InterfaceClass twisted.web.iweb.IBodyProducer>)

Glyph Lefkowitz glyph at twistedmatrix.com
Wed Jan 11 17:44:10 MST 2017


> On Jan 10, 2017, at 6:43 PM, Tom Most <tommost at gmail.com> wrote:
> 
> On 01/08/2017 06:49 PM, Glyph Lefkowitz wrote:
>> 
>>> On Jan 6, 2017, at 11:03 AM, steven meiers < <mailto:commercials24 at yahoo.de>commercials24 at yahoo.de <mailto: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 <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.
> 
> I submitted a PR to fix this a while ago: https://github.com/twisted/treq/pull/152 <https://github.com/twisted/treq/pull/152>
> 
> Also, the docs on RTD are still out of date. Who owns them? I'd be happy to help.

Thanks, hopefully the next time my periodic review comes around I'll catch that one.

Looks like I own the docs.  Builds are apparently failing - should I add you to the project?

-glyph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20170111/41988bf3/attachment-0002.html>


More information about the Twisted-Python mailing list