Skip to content
This repository has been archived by the owner on May 8, 2020. It is now read-only.

Response.buffer() return str rather than [bytes] #289

Open
Yang-z opened this issue Jan 9, 2020 · 1 comment
Open

Response.buffer() return str rather than [bytes] #289

Yang-z opened this issue Jan 9, 2020 · 1 comment

Comments

@Yang-z
Copy link

Yang-z commented Jan 9, 2020

When I try to get raw data of response body, the buffer() always returns data in the form of 'str'.
This is not what the API Reference says:
buffer() → Awaitable[bytes]

The body data in my case is 'amf', so I try to encode the 'str' data before pass it to a 'amf' parser(such as py3Amf), but the result is unresovable. Then I try to catch 'amf' data by Charles, and find that the binary data generated by res.buffer().encode() is differ from that catched by Charles. (Charles gives the right 'amf' data in binary, which is parsable.)

Please help.

@Mattwmaster58
Copy link

Hi @Yang-z, it looks like this project has been abandoned. You may want to consider the active fork pyppeteer2. Feel free to create an issue there if your problem persists with the updated libary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants