Skip to content

page.goto: net::ERR_TUNNEL_CONNECTION_FAILED When using browser-pool and https proxy #3369

@GuiKlesseMiranda

Description

@GuiKlesseMiranda

Which package is this bug report for? If unsure which one to select, leave blank

@crawlee/browser-pool

Issue description

I am facing an issue when using BrightData HTTPS proxies together with BrowserPool.

When I use plain Playwright and configure the BrightData HTTPS proxy directly in the launch options, everything works as expected.

However, when using the same proxy through BrowserPool, even when the proxy is configured in the launch, all HTTPS navigations fail with the following error:

page.goto: net::ERR_TUNNEL_CONNECTION_FAILED

I have also tried setting ignoreHTTPSErrors: true, but the problem still occurs.

In other words, the HTTPS CONNECT tunnel is not being established correctly when the browser is created via BrowserPool, while the same proxy works fine with Playwright without the pool.

Just informing you that when using the same proxy as HTTP, it works, but there is a scenario in which I need to use HTTPS.

Code sample

const page = await browserPool.newPage({
  proxyUrl: 'https://USER:PASSWORD@HOST:PORT',
});

await page.goto('https://example.com');

Package version

3.15.3

Node.js version

v22.14.0

Operating system

MACOS

Apify platform

  • Tick me if you encountered this issue on the Apify platform

I have tested this on the next release

No response

Other context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions