Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of undefined (reading 'on') #253

Open
humanismusic opened this issue Jan 3, 2025 · 0 comments
Open

TypeError: Cannot read properties of undefined (reading 'on') #253

humanismusic opened this issue Jan 3, 2025 · 0 comments
Labels
triage This ticket will be looked at shortly

Comments

@humanismusic
Copy link

humanismusic commented Jan 3, 2025

Description

Hey,

Running version 1.3.22 in Docker on Google Cloud Run and seeing this error when connecting to chromium:

TypeError: Cannot read properties of undefined (reading 'on').

Error points to this part of pageController.js:

page.on('close', () => {
solveStatus = false
});
browser.on('disconnected', async () => {

Config:

const response = await connect({
            headless: false,
            disableXvfb: false,
            ignoreAllFlags: false,
            customConfig: {
                chromePath: process.env.PUPPETEER_EXECUTABLE_PATH || '/usr/bin/google-chrome-stable',
                chromeFlags: ['--no-sandbox']
            },
            skipTarget: [],
            fingerprint: true,
            turnstile: true,
        });

Tried different configs to no avail. Issue doesn't occur in 1.2.x version of the library in the same environment.

Believe @theodorebourgeon referenced similar problem in issue #27, although unrelated to lambda.

Full steps to reproduce the issue

const response = await connect({
            headless: false,
            disableXvfb: false,
            ignoreAllFlags: false,
            customConfig: {
                chromePath: process.env.PUPPETEER_EXECUTABLE_PATH || '/usr/bin/google-chrome-stable',
                chromeFlags: ['--no-sandbox']
            },
            skipTarget: [],
            fingerprint: true,
            turnstile: true,
        });

Node version: 18

Issue Type

Build/Install

Operating System

Linux

Do you use Docker?

Docker

@humanismusic humanismusic added the triage This ticket will be looked at shortly label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage This ticket will be looked at shortly
Projects
None yet
Development

No branches or pull requests

1 participant