Re: [Twisted-Python] understanding twisted, better error handling

2017-01-10 Thread steven meiers
Am Montag, den 09.01.2017, 23:12 -0800 schrieb Glyph Lefkowitz: > > > > On Jan 9, 2017, at 5:20 PM, steven meiers > > wrote: > > > > the error does come up when you give agent.request a "GET" instead > > of a > > b"GET". > > That's expected; you do have to pass the method as `bytes`, as > docu

Re: [Twisted-Python] treq POST abborting with: err: ('Could not adapt', '{"....", "..."} )

2017-01-10 Thread Tom Most
On 01/08/2017 06:49 PM, Glyph Lefkowitz wrote: > >> On Jan 6, 2017, at 11:03 AM, steven meiers > > 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 inst

Re: [Twisted-Python] understanding twisted, better error handling

2017-01-10 Thread Tristan Seligmann
On Wed, 11 Jan 2017 at 02:26 steven meiers wrote: > True, but since python 2.x is still shipped with debian testing for > example there will be some people running into this issue. > Just to make twisted more approachable this could he handled. > The b'GET' syntax for byte strings works on Pytho