node-html-to-image icon indicating copy to clipboard operation
node-html-to-image copied to clipboard

Issue : HTML have mage size more than 10 MB then it is give timout error.

Open sumerpalgit opened this issue 2 years ago • 2 comments

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. (/home/ubuntu/sports/node_modules/puppeteer-cluster/dist/util.js:69:23) at Generator.next () at fulfilled (/home/ubuntu/sports/node_modules/puppeteer-cluster/dist/util.js:5:58) (Use 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.

sumerpalgit avatar Mar 02 '22 06:03 sumerpalgit

Hello @sumerpalgit 👋

Thank you for posting this issue. Can you share some reproduction so I can investigate it, please?

frinyvonnick avatar Mar 02 '22 09:03 frinyvonnick

< 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 <)

krylovaaleksandra avatar Apr 07 '22 22:04 krylovaaleksandra

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.

frinyvonnick avatar Aug 05 '23 09:08 frinyvonnick