#Error: Protocol error (Network.setUserAgentOverride): Session closed. Most likely the page has been
5 messages · Page 1 of 1 (latest)
i have the same problem
We're having this issue when deploying to a kubernetes, the pod starts, but the client never finishes initializing and eventually throws this same error (session closed)
For me removing --single-process parameter from puppeteer configs solved the issue.
authStrategy: new LocalAuth(),
puppeteer: {
headless: true,
executablePath: EnvConfig.CHROME_PATH,
args: [
'--no-sandbox',
'--disable-client-side-phishing-detection',
'--disable-setuid-sandbox',
'--disable-component-update',
'--disable-default-apps',
'--disable-popup-blocking',
'--disable-offer-store-unmasked-wallet-cards',
'--disable-speech-api',
'--hide-scrollbars',
'--mute-audio',
'--disable-extensions',
'--disable-dev-shm-usage',
'--disable-accelerated-2d-canvas',
'--no-first-run',
'--no-default-browser-check',
'--no-pings',
'--password-store=basic',
'--use-mock-keychain',
'--no-zygote',
'--disable-gpu',
// '--single-process',
]
},
}
Thanks @uncut pumice work for me.