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
v3.0 - firefox pdf fails when printBackground set to true #5671
Comments
Thanks for the great bug report. Filed this as https://bugzilla.mozilla.org/show_bug.cgi?id=163272 If you hit any other protocol errors in Firefox while using Puppeteer v3, feel free to file issues here or directly in https://bugzilla.mozilla.org under the "Remote Protocol" product. |
Note that the referenced Bugzilla link points to a different bug. Here is the correct one: |
it seems that the problem is related to the size of the generated PDF. Making a change on helper.js (readProtocolStream), specifying the size parameter solved the problem. const response = await client.send ('IO.read', {handle: handle, size: 102400}); |
pull request #6264 |
Should be fixed in the next Firefox Nightly: https://bugzilla.mozilla.org/show_bug.cgi?id=1632722 |
Steps to reproduce
What steps will reproduce the problem?
What is the expected result?
Convert to pdf without issues
What happens instead?
It results in the following error
The text was updated successfully, but these errors were encountered: