zimit
zimit copied to clipboard
How to override CDP "timeout"?
Hi!
How can I override the CDP timeout value, defined in puppeteer code? I want to set the value to 90 seconds.
https://github.com/puppeteer/puppeteer/blob/6e8014dfabc20447889048c67ce489f5c9b4bb09/packages/puppeteer-core/src/node/BrowserLauncher.ts#L85
zimit 2.1.8
Error:
"Timed out after 30000 ms while waiting for the WS endpoint URL to appear in stdout!"
{
"timestamp": "...",
"logLevel": "error",
"context": "general",
"message": "Crawl failed",
"details": {
"type": "exception",
"message": "Timed out after 30000 ms while waiting for the WS endpoint URL to appear in stdout!",
"stack": "..."
}
}
stack
TimeoutError: Timed out after 30000 ms while waiting for the WS endpoint URL to appear in stdout!
at ChromeLauncher.launch (file:///app/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserLauncher.js:126:23)
at async Browser._init (file:///app/dist/util/browser.js:259:24)
at async Browser.launch (file:///app/dist/util/browser.js:69:9)
at async Crawler.crawl (file:///app/dist/crawler.js:1017:9)
at async Crawler.run (file:///app/dist/crawler.js:360:13)
at async file:///app/dist/main.js:58:1
I don't think we can customize this setting, but @ikreymer probably knows better than I do