Despite reviewing the other sections related to --remote-debugging, I have not enabled it while running my Google Cloud Function. However, I am encountering an error:
Unhandled error Error: Failed to launch the browser process! [0122/235916.996111:ERROR:headless_shell.cc(204)] Navigation timeout is disabled when remote debugging is enabled.
The way I initialize puppeteer is as follows:
const browser = await puppeteer.launch(PUPPETEER_OPTIONS);
const page = await browser.newPage();
The value of my PUPPETEER_OPTIONS object is:
const PUPPETEER_OPTIONS = {
headless: true,
args: [
'--disable-gpu',
'--disable-dev-shm-usage',
'--disable-setuid-sandbox',
'--timeout=30000',
'--no-first-run',
'--no-sandbox',
'--no-zygote',
'--single-process',
"--proxy-server='direct://'",
'--proxy-bypass-list=*',
'--deterministic-fetch',
],
};
I am using node10 and puppeteer v5.5.0 within a Google Cloud Function environment. I have attempted various configurations like removing '-timeout=30000', keeping only '--no-sandbox', toggling 'headless' between true and false, but unfortunately, the error persists.