lucacasonato/deno-puppeteer

`ReferenceError` when calling HTTPResponse's `arrayBuffer()` method.

Closed this issue · 4 comments

c0per commented

When you want to get the arrayBuffer of a response body, res.arrayBuffer() throws a ReferenceError.

page.on("response", (res) => {
    res.arrayBuffer();
});

---
error: Uncaught (in promise) ReferenceError: base64Decode is not defined
        return response.base64Encoded
c0per commented

It turns out to be a simple mistake. It's just a function needs to be imported. I'll send a PR to fix this.

@lucacasonato can this be fixed please? thanks!

confirming that the PR works

Feel free to contribute a PR!

Feel free to contribute a PR!

done! xd

1650630611