capture-website icon indicating copy to clipboard operation
capture-website copied to clipboard

UnhandledPromiseRejectionWarning: Error: Page crashed!

Open DesignyourCode opened this issue 6 years ago • 0 comments

Hi,

Thank you for the awesome package. This has been great so far.

I have encountered an issue on a production server: UnhandledPromiseRejectionWarning: Error: Page crashed! which is coming from Puppeteer.

From what I have read, the code below would help mitigate the issue, but I am not sure how to implement this with capture-website:

page.on('error', error => reject(error));

Could you point me in the right direction please?

DesignyourCode avatar Nov 11 '19 17:11 DesignyourCode