Skip to content

[Bug]: Browser Install Timeout regardless of env timeout. 1.63.0 regression #42597

Description

Version

1.63.0

Steps to reproduce

  1. npm i playwright@1.63.0 or npm init playwright
  2. Install browsers with Playwright setup
  3. (Possible ISP related issues, cannot confirm at this time)

Expected behavior

Browsers are installed successfully and tests be run smoothly.

Actual behavior

Options already mixed and matched:

$ NODE_OPTIONS="--dns-result-order=ipv4first" DEBUG=pw:install HTTPS_PROXY=https://192.0.2.1 PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT=120000 npx playwright install
  pw:install downloading Chrome for Testing 153.0.8010.12 (playwright chromium v1243) - attempt #1 +0ms
Downloading Chrome for Testing 153.0.8010.12 (playwright chromium v1243) from https://cdn.playwright.dev/builds/cft/153.0.8010.12/win64/chrome-win64.zip
  pw:install running download: +30ms
  pw:install -- from url: https://cdn.playwright.dev/builds/cft/153.0.8010.12/win64/chrome-win64.zip +0ms
  pw:install -- to location: C:\Users\ajelm\AppData\Local\Temp\playwright-download-In1rGm\playwright-download-chromium-win64-1243.zip +1ms
Error: connect ETIMEDOUT 192.0.2.1:443
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1706:16) {
  errno: -4039,
  code: 'ETIMEDOUT',
  syscall: 'connect',
  address: '192.0.2.1',
  port: 443
}
  pw:install attempt #1 - ERROR: Download failure, code=1 +21s
  pw:install downloading Chrome for Testing 153.0.8010.12 (playwright chromium v1243) - attempt #2 +0ms
Downloading Chrome for Testing 153.0.8010.12 (playwright chromium v1243) from https://cdn.playwright.dev/builds/cft/153.0.8010.12/win64/chrome-win64.zip
  pw:install running download: +28ms
  pw:install -- from url: https://cdn.playwright.dev/builds/cft/153.0.8010.12/win64/chrome-win64.zip +1ms
  pw:install -- to location: C:\Users\ajelm\AppData\Local\Temp\playwright-download-In1rGm\playwright-download-chromium-win64-1243.zip +0ms
Error: connect ETIMEDOUT 192.0.2.1:443
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1706:16) {
  errno: -4039,
  code: 'ETIMEDOUT',
  syscall: 'connect',
  address: '192.0.2.1',
  port: 443
}
  pw:install attempt #2 - ERROR: Download failure, code=1 +21s
  pw:install downloading Chrome for Testing 153.0.8010.12 (playwright chromium v1243) - attempt #3 +1ms
Downloading Chrome for Testing 153.0.8010.12 (playwright chromium v1243) from https://cdn.playwright.dev/builds/cft/153.0.8010.12/win64/chrome-win64.zip
  pw:install running download: +14ms
  pw:install -- from url: https://cdn.playwright.dev/builds/cft/153.0.8010.12/win64/chrome-win64.zip +1ms
  pw:install -- to location: C:\Users\ajelm\AppData\Local\Temp\playwright-download-In1rGm\playwright-download-chromium-win64-1243.zip +0ms
Error: connect ETIMEDOUT 192.0.2.1:443
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1706:16) {
  errno: -4039,
  code: 'ETIMEDOUT',
  syscall: 'connect',
  address: '192.0.2.1',
  port: 443
}
  pw:install attempt #3 - ERROR: Download failure, code=1 +21s
  pw:install downloading Chrome for Testing 153.0.8010.12 (playwright chromium v1243) - attempt #4 +0ms
Downloading Chrome for Testing 153.0.8010.12 (playwright chromium v1243) from https://cdn.playwright.dev/builds/cft/153.0.8010.12/win64/chrome-win64.zip
  pw:install running download: +14ms
  pw:install -- from url: https://cdn.playwright.dev/builds/cft/153.0.8010.12/win64/chrome-win64.zip +0ms
  pw:install -- to location: C:\Users\ajelm\AppData\Local\Temp\playwright-download-In1rGm\playwright-download-chromium-win64-1243.zip +0ms
Error: connect ETIMEDOUT 192.0.2.1:443
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1706:16) {
  errno: -4039,
  code: 'ETIMEDOUT',
  syscall: 'connect',
  address: '192.0.2.1',
  port: 443
}
  pw:install attempt #4 - ERROR: Download failure, code=1 +21s
  pw:install downloading Chrome for Testing 153.0.8010.12 (playwright chromium v1243) - attempt #5 +0ms
Downloading Chrome for Testing 153.0.8010.12 (playwright chromium v1243) from https://cdn.playwright.dev/builds/cft/153.0.8010.12/win64/chrome-win64.zip
  pw:install running download: +20ms
  pw:install -- from url: https://cdn.playwright.dev/builds/cft/153.0.8010.12/win64/chrome-win64.zip +0ms
  pw:install -- to location: C:\Users\ajelm\AppData\Local\Temp\playwright-download-In1rGm\playwright-download-chromium-win64-1243.zip +0ms
Error: connect ETIMEDOUT 192.0.2.1:443
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1706:16) {
  errno: -4039,
  code: 'ETIMEDOUT',
  syscall: 'connect',
  address: '192.0.2.1',
  port: 443
}
  pw:install attempt #5 - ERROR: Download failure, code=1 +21s
  pw:install FAILED installation Chrome for Testing 153.0.8010.12 (playwright chromium v1243) with error: Error: Download failure, code=1 +1ms
Failed to install browsers
Error: Failed to download Chrome for Testing 153.0.8010.12 (playwright chromium v1243), caused by
Error: Download failure, code=1
    at ChildProcess.<anonymous> (C:\Users\ajelm\Documents\_Work\CVSU-CEMDS\cvsu-cemds\node_modules\playwright-core\lib\coreBundle.js:32428:32)
    at ChildProcess.emit (node:events:509:28)
    at ChildProcess._handle.onexit (node:internal/child_process:295:12)

Additional context

Reviewed Related issues: #34686, #37666, #42578, #40998


Workaround:

Installed playwright 1.62.1, browser installs success

Here is my packet loss:

Ping statistics for 1.1.1.1:
    Packets: Sent = 100, Received = 99, Lost = 1 (1% loss),
Approximate round trip times in milli-seconds:
    Minimum = 3ms, Maximum = 42ms, Average = 7ms

Environment

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    Memory: 2.10 GB / 15.75 GB
  Binaries:
    Node: 24.18.0 - C:\Program Files\nodejs\node.EXE    npm: 11.16.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 11.12.0 - C:\Program Files\nodejs\pnpm.CMD  IDEs:
    VSCode: 1.136.1 - C:\Users\ajelm\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
    Cursor: 2.2.44 - c:\Users\ajelm\AppData\Local\Programs\cursor\resources\app\bin\cursor.CMD
  Languages:
    Bash: 5.1.16 - C:\windows\system32\bash.EXE
  npmPackages:
    @playwright/test: ^1.63.0 => 1.63.0 
    playwright: ^1.62.1 => 1.62.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions