marcbachmann / node-html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.
MIT License
3.56k stars 545 forks source link

pdf not created html-pdf: PDF generation timeout. Phantom.js script did not exit. #566

Closed ajinkyakadhe closed 4 years ago

ajinkyakadhe commented 4 years ago

this npm working as expected on local host but it doesn't work as on local host after deploying cloud scheduler function it gives me above error.i tried timeout upto 900000 it won't work for me. any work around or fixes?

martisj commented 4 years ago

A little more of your code might illuminate the issue. @ajinkyakadhe

dhruvaprajapati commented 4 years ago

@ajinkyakadhe Your one of the external css/js might have not loaded.

ajinkyakadhe commented 4 years ago

Thank you for your reply @dhruvaprajapati and @martisj... I resolved this problem using dividing load into two different functions.. 1st function is used for creating a pdf and another scheduler function is used to mail pdf file...