Any insights into time out issue: Page.printToPDF timed out. Increase the 'protocolTimeout' setting

Any insights into time out issue: Page.printToPDF timed out. Increase the 'protocolTimeout' setting in launch/connect calls for a higher timeout if needed.

I've set the protocolTimeout to 0 in my config:
const browser = await puppeteer.launch(env.BROWSER,{
headless: 'new',
keep_alive: 600000,
args: [
"--disable-setuid-sandbox",
"--no-sandbox",
"--single-process",
"--no-zygote",
],
protocolTimeout: 0,
});

Any other suggestions for avoiding timeout.

What my app does - I pass it an HTML string, which it renders via page.setContent(html...) then it converts to PDF using page.pdf({...,timeout: 0})
Was this page helpful?