To Generate pdf out of html I using puppeteer with Pugjs, while on testing phase with only node js pdf gets generate within minute, but on UAT phase with express js it’s getting time out
TimeoutError: Timed out after waiting 30000ms
at E:BRMProdReportPDFnode_modulespuppeteer-corelibcjspuppeteercommonutil.js:289:19
at E:BRMProdReportPDFnode_modulespuppeteer-corelibcjsthird_partyrxjsrxjs.js:3986:35
at OperatorSubscriber2._this._next (E:BRMProdReportPDFnode_modulespuppeteer-corelibcjsthird_partyrxjsrxjs.js:1055:13)
at Subscriber2.next (E:BRMProdReportPDFnode_modulespuppeteer-corelibcjsthird_partyrxjsrxjs.js:678:16)
at AsyncAction2. (E:BRMProdReportPDFnode_modulespuppeteer-corelibcjsthird_partyrxjsrxjs.js:4863:24)
at AsyncAction2._execute (E:BRMProdReportPDFnode_modulespuppeteer-corelibcjsthird_partyrxjsrxjs.js:1974:16)
at AsyncAction2.execute (E:BRMProdReportPDFnode_modulespuppeteer-corelibcjsthird_partyrxjsrxjs.js:1963:26)
at AsyncScheduler2.flush (E:BRMProdReportPDFnode_modulespuppeteer-corelibcjsthird_partyrxjsrxjs.js:2235:30)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7) {
[cause]: undefined
I set timeout : 0, but still gets error
ProtocolError: Page.printToPDF timed out. Increase the ‘protocolTimeout’ setting in launch/connect calls for a higher timeout if needed.
I try timeout to zero on page.pdf
why express js code leads to timeout