Open NikolayMurha opened 4 years ago
I'm seeing the same issue
Is anyone fixing this?
I'm working on improving the communication between PHP and Node processes, I can't provide you an estimation though. It will improve the following topics:
Same issue. And thank you @nesk for working on this.
I have the same issue.
The same
Still have the same error :(
Still have the same error as well :/
Remember to add the ".html" extension when using the temporary HTML file workaround described by @NikolayMurha. Dummy thing, but I was figuring out for a moment why the PDF showed the source code only. 😄
Describe the bug When I call
$page->setContent($html)
for large page, I have errorUnexpected end of JSON input
After investigation I found problem in the "@nesk/rialto" packge:https://github.com/nesk/rialto/blob/dev/src/node-process/Connection.js#L49
For large content
data
limited by 65536 bytes max and should be read by chunks.As temporary workaround I put content to temporary html file and call
$page->goto('file://' . $this->tempFile);
instead of$page->setContent($html);
Expected behavior Render content without errors.
Environment (please complete the following information):
My Node package manager is: