
Jan. 6, 2017
6:36 p.m.
On Fri, 6 Jan 2017 at 21:21 steven meiers <commercials24@yahoo.de> wrote:
glyph (without seeing the the code or backtrace) suggested that: "I think the issue might be that it doesn't support bytes() on py3, it's registered against str() or something"
Actually, the problem is the reverse of this; only bytes is supported, but you're passing str (unicode) in.
somepage = yield treq.post(target_url, json.dumps({hmac: key, "username": username, 'pw':'', 'gender':'m', 'aaaa':''}),
json.dumps returns str (ie. unicode) on py3; throwing in a .encode('utf-8') here is probably what you want.