[Twisted-Python] treq POST abborting with: err: ('Could not adapt', '{"....", "..."} <InterfaceClass twisted.web.iweb.IBodyProducer>)
Glyph Lefkowitz
glyph at twistedmatrix.com
Thu Jan 12 01:29:09 MST 2017
Done.
-g
> On Jan 11, 2017, at 10:05 PM, Tom Most <tommost at gmail.com> wrote:
>
> Sure, I'd be happy to help (but won't get to it until the weekend). Username is twm.
>
> Thanks,
> Tom
> On 01/11/2017 04:44 PM, Glyph Lefkowitz wrote:
>>
>>> On Jan 10, 2017, at 6:43 PM, Tom Most < <mailto:tommost at gmail.com>tommost at gmail.com <mailto: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 <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 <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
>>
>>
>>
>> _______________________________________________
>> Twisted-Python mailing list
>> Twisted-Python at twistedmatrix.com <mailto:Twisted-Python at twistedmatrix.com>
>> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python <http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20170112/f9a09327/attachment-0002.html>
More information about the Twisted-Python
mailing list