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

Crash when setting debugging port #269

Closed
marcoschwartz opened this issue Jan 20, 2025 · 1 comment
Closed

Crash when setting debugging port #269

marcoschwartz opened this issue Jan 20, 2025 · 1 comment
Labels
triage This ticket will be looked at shortly

Comments

@marcoschwartz
Copy link

Description

Hello,

I am using your library for a web automation project, where a browser is controlled remotely via puppeteer-core. Works fine with a standard puppeteer browser, but when I activate the debugging port on your repository it crashes:

Error: connect ECONNREFUSED 127.0.0.1:33951
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1549:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 33951
}

I tested it in many environments like Ubutun, Debian, Mac OS, Docker - same issue. Am I doing something wrong? The goal would be to launch a browser once and then send commands (like goto) remotely via puppeteer-core.

Thanks!

Full steps to reproduce the issue

I am using the following code that produces the error:

`const { connect } = require("puppeteer-real-browser")

async function startBrowser() {

const { browser } = await connect({

    headless: false,

    args: [ "--remote-debugging-port=9222" ],

    customConfig: {},

    turnstile: true,

    connectOption: {},

    disableXvfb: false,
    ignoreAllFlags: false

})

console.log("Started browser")

}

startBrowser()`

Issue Type

No response

Operating System

No response

Do you use Docker?

None

@marcoschwartz marcoschwartz added the triage This ticket will be looked at shortly label Jan 20, 2025
@RubberArchind
Copy link

try to set it inside customConfig instead of args, there is port settings in the GoogleChromeLauncher

https://github.com/GoogleChrome/chrome-launcher

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

3 participants