I'm getting "TimeoutError: waiting for Page.printToPDF failed" when trying to convert to PDF a large invoice:
Unhandled Rejection at: Promise Promise { <rejected> TimeoutError: waiting for Page.printToPDF failed: timeout 30000ms exceeded at Object.waitWithTimeout (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/helper.js:224:26) at Page.createPDFStream (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2045:49) at Page.pdf (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2057:37) at /var/www/montbeau/releases/20210929161149/scripts/invoice_to_pdf.js:175:20 at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5) } reason: TimeoutError: waiting for Page.printToPDF failed: timeout 30000ms exceeded at Object.waitWithTimeout (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/helper.js:224:26) at Page.createPDFStream (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2045:49) at Page.pdf (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2057:37) at /var/www/montbeau/releases/20210929161149/scripts/invoice_to_pdf.js:175:20...
How do I increase the timeout?