-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"toString()" failed Page.printToPDF #317
Comments
Thanks! :) What version of |
@cyrus-and |
Well yes, it looks like it (see nodejs/node#3175). Tl;dr:
|
Hmmm, |
Sorry, my bad, I was thinking about something else; ignore that phrase. Let me look into this. |
OK, so this is ultimately a Node.js/V8 limitation of the I suspect though that a different implementation of ws could make it work even with LTS Node.js, but that would require to switch to Here's a minimal way to reproduce this using from websocket_server import WebsocketServer
s = 'x' * ((1 << 28) - 16 + 1)
def new_client(client, server):
server.send_message(client, s)
server = WebsocketServer(1234)
server.set_fn_new_client(new_client)
server.run_forever() Start the above then |
Is Chrome running in a container? NO
Hi,
First of all let me thank you for your great work. This package has been a lot of help, but
recently I got this error ' "toString()" failed'.
Here is the full error stack trace.
This Error happens when I try to generate a pdf from a huge html file(a lot of high res pic in it) with Page.printToPDF(someOptions).
The code itself is straightforward, go to page, and generatePdf then save it to s3.
A link to the code the error starts
I can only think of the limit of max buffer size being hit and that being the reason the code throws an error.
Have you ever encounter this error before?
The text was updated successfully, but these errors were encountered: