node-html-to-image
node-html-to-image copied to clipboard
Issue : HTML have mage size more than 10 MB then it is give timout error.
I have used this plugin for HTML TO image. And it is working amazing but when we have more than 10 MB image in HTML then it is give me timout error below so can you please help me on same.. I have try to resolve this issue and spen more than 2 days but did not get luck so please help.
(node:28687) UnhandledPromiseRejectionWarning: Error: Timeout hit: 30000
at Object.node --trace-warnings ...
to show where the warning was created)
(node:28687) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:28687) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
If you need more details then please let me know.
Hello @sumerpalgit 👋
Thank you for posting this issue. Can you share some reproduction so I can investigate it, please?
< video id="video_background" preload="auto" autoplay="true" loop="true" muted="muted" class="video-9--6_I"> < source src="https://cdn.discordapp.com/attachments/880449376957390941/889581462108639263/pososi_mudila.webm" type="video/webm" /> < /video> (remove spaces after <)
The pull request #189 let you pass a timeout option. It has been merged and released in 4.0.0 🚀
It should fix your issue. I close this issue, Feel free to reopen it if it does not fixes it.