You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of our documents take time to be generated and exceed the default pupeteer 30s timeout.
✖ generating PDF from doc.md
→ Navigation timeout of 30000 ms exceeded
ListrError: Something went wrong
at /usr/local/lib/node_modules/md-to-pdf/node_modules/listr/index.js:102:18
at async main (/usr/local/lib/node_modules/md-to-pdf/dist/cli.js:118:5) {
errors: [
TimeoutError: Navigation timeout of 30000 ms exceeded
at /usr/local/lib/node_modules/md-to-pdf/node_modules/puppeteer/lib/cjs/puppeteer/common/LifecycleWatcher.js:106:111
at async DOMWorld.setContent (/usr/local/lib/node_modules/md-to-pdf/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:146:23)
at async Page.setContent (/usr/local/lib/node_modules/md-to-pdf/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:1097:9)
at async Object.generateOutput (/usr/local/lib/node_modules/md-to-pdf/dist/lib/generate-output.js:14:5)
at async Object.convertMdToPdf (/usr/local/lib/node_modules/md-to-pdf/dist/lib/md-to-pdf.js:61:20)
],
context: [Object: null prototype] {}
}
Solution:
Either
call here the setContent method passing the puppetteer options .
Thanks for the report. I'm wondering whether the best option would be to expose the whole page reference, so that you can define a callback via js config, e. g.
Problem:
Some of our documents take time to be generated and exceed the default pupeteer 30s timeout.
Solution:
Either
setContent
method passing the puppetteer options .https://github.com/puppeteer/puppeteer/blob/main/src/common/Page.ts#L917-L943
???
The text was updated successfully, but these errors were encountered: