#Error: Protocol error (Network.setUserAgentOverride): Session closed. Most likely the page has been

5 messages · Page 1 of 1 (latest)

graceful inlet
#

node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:316
return Promise.reject(new Error(Protocol error (${method}): Session closed. Most likely the ${__classPrivateFieldGet(this, _CDPSessionImpl_targetType, "f")} has been closed.));

wispy galleon
#

i have the same problem

carmine granite
#

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)

uncut pumice
#

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',
        ]
    },
}
graceful inlet