Version
1.55.1
Steps to reproduce
- npm init playwright@latest
- create a github action to run the demo tests
- have the action run the npx playwright install command to download browsers
- see timeout issue
e.g.
- name: Install dependencies
run: npm ci
- name: Install Playwright browser
env:
PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT: 1000
run: npx playwright install chromium --no-shell
- name: Run Playwright tests
run: npx playwright test --project=chromium
Expected behavior
install command should successfully download the browser from initial CDN
Actual behavior
install command throws a timeout error and switches to a different CDN
if I do not set PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT: 1000 the github action is stuck waiting 30 seconds to timeout for every single download
2025-10-01T15:51:36.2779861Z ##[group]Run npx playwright install chromium --no-shell
2025-10-01T15:51:36.2780543Z �[36;1mnpx playwright install chromium --no-shell�[0m
2025-10-01T15:51:36.2789638Z shell: /usr/bin/bash -e {0}
2025-10-01T15:51:36.2789963Z env:
2025-10-01T15:51:36.2790258Z PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT: 1000
2025-10-01T15:51:36.2790566Z ##[endgroup]
2025-10-01T15:51:37.0611584Z Downloading Chromium 140.0.7339.186 (playwright build v1193) from https://cdn.playwright.dev/dbazure/download/playwright/builds/chromium/1193/chromium-linux.zip
2025-10-01T15:51:41.6781003Z Error: Request to https://cdn.playwright.dev/dbazure/download/playwright/builds/chromium/1193/chromium-linux.zip timed out after 1000ms
2025-10-01T15:51:41.6784131Z at ClientRequest.<anonymous> (/home/runner/_work/playwright-new-headless-chrome/node_modules/playwright-core/lib/server/utils/network.js:90:15)
2025-10-01T15:51:41.6786457Z at Object.onceWrapper (node:events:633:28)
2025-10-01T15:51:41.6787177Z at ClientRequest.emit (node:events:519:28)
2025-10-01T15:51:41.6787968Z at TLSSocket.emitRequestTimeout (node:_http_client:863:9)
2025-10-01T15:51:41.6788964Z at Object.onceWrapper (node:events:633:28)
2025-10-01T15:51:41.6789755Z at TLSSocket.emit (node:events:531:35)
2025-10-01T15:51:41.6790342Z at Socket._onTimeout (node:net:604:8)
2025-10-01T15:51:41.6791560Z at listOnTimeout (node:internal/timers:588:17)
2025-10-01T15:51:41.6792348Z at process.processTimers (node:internal/timers:523:7)
2025-10-01T15:51:41.6827401Z Downloading Chromium 140.0.7339.186 (playwright build v1193) from https://playwright.download.prss.microsoft.com/dbazure/download/playwright/builds/chromium/1193/chromium-linux.zip
2025-10-01T15:51:41.9164431Z | | 0% of 173.8 MiB
2025-10-01T15:51:42.1959827Z |■■■■■■■■ | 10% of 173.8 MiB
2025-10-01T15:51:42.4114803Z |■■■■■■■■■■■■■■■■ | 20% of 173.8 MiB
2025-10-01T15:51:42.6252601Z |■■■■■■■■■■■■■■■■■■■■■■■■ | 30% of 173.8 MiB
2025-10-01T15:51:42.8150759Z |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 40% of 173.8 MiB
2025-10-01T15:51:42.9879631Z |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 50% of 173.8 MiB
2025-10-01T15:51:43.1243309Z |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 60% of 173.8 MiB
2025-10-01T15:51:43.2443731Z |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 70% of 173.8 MiB
2025-10-01T15:51:43.4937671Z |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 80% of 173.8 MiB
2025-10-01T15:51:43.6823467Z |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 90% of 173.8 MiB
2025-10-01T15:51:43.7905380Z |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 173.8 MiB
2025-10-01T15:51:48.9751698Z Chromium 140.0.7339.186 (playwright build v1193) downloaded to /home/runner/.cache/ms-playwright/chromium-1193
2025-10-01T15:51:48.9754816Z Downloading FFMPEG playwright build v1011 from https://cdn.playwright.dev/dbazure/download/playwright/builds/ffmpeg/1011/ffmpeg-linux.zip
2025-10-01T15:51:51.1816207Z Error: Request to https://cdn.playwright.dev/dbazure/download/playwright/builds/ffmpeg/1011/ffmpeg-linux.zip timed out after 1000ms
2025-10-01T15:51:51.1818401Z at ClientRequest.<anonymous> (/home/runner/_work/playwright-new-headless-chrome/node_modules/playwright-core/lib/server/utils/network.js:90:15)
2025-10-01T15:51:51.1820126Z at Object.onceWrapper (node:events:633:28)
2025-10-01T15:51:51.1820680Z at ClientRequest.emit (node:events:519:28)
2025-10-01T15:51:51.1821861Z at TLSSocket.emitRequestTimeout (node:_http_client:863:9)
2025-10-01T15:51:51.1822652Z at Object.onceWrapper (node:events:633:28)
2025-10-01T15:51:51.1823203Z at TLSSocket.emit (node:events:531:35)
2025-10-01T15:51:51.1823791Z at Socket._onTimeout (node:net:604:8)
2025-10-01T15:51:51.1824471Z at listOnTimeout (node:internal/timers:588:17)
2025-10-01T15:51:51.1825176Z at process.processTimers (node:internal/timers:523:7)
2025-10-01T15:51:51.1864287Z Downloading FFMPEG playwright build v1011 from https://playwright.download.prss.microsoft.com/dbazure/download/playwright/builds/ffmpeg/1011/ffmpeg-linux.zip
2025-10-01T15:51:51.4521813Z | | 0% of 2.3 MiB
2025-10-01T15:51:51.4939252Z |■■■■■■■■ | 10% of 2.3 MiB
2025-10-01T15:51:51.5110293Z |■■■■■■■■■■■■■■■■ | 20% of 2.3 MiB
2025-10-01T15:51:51.5209720Z |■■■■■■■■■■■■■■■■■■■■■■■■ | 30% of 2.3 MiB
2025-10-01T15:51:51.5279445Z |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 40% of 2.3 MiB
2025-10-01T15:51:51.5344951Z |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 50% of 2.3 MiB
2025-10-01T15:51:51.5395470Z |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 60% of 2.3 MiB
2025-10-01T15:51:51.5432174Z |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 70% of 2.3 MiB
2025-10-01T15:51:51.5466213Z |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 80% of 2.3 MiB
2025-10-01T15:51:51.5497484Z |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 90% of 2.3 MiB
2025-10-01T15:51:51.5522205Z |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 2.3 MiB
2025-10-01T15:51:51.6188014Z FFMPEG playwright build v1011 downloaded to /home/runner/.cache/ms-playwright/ffmpeg-1011
2025-10-01T15:51:51.6929996Z ##[group]Run npx playwright test --project=chromium
Additional context
Same issue documented here:
#34686
#35564
Environment
System:
OS: Linux 5.15 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
CPU: (4) x64 Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
Memory: 4.35 GB / 5.61 GB
Container: Yes
Binaries:
Node: 22.20.0 - ~/_work/_tool/node/22.20.0/x64/bin/node
npm: 10.9.3 - ~/_work/_tool/node/22.20.0/x64/bin/npm
Languages:
Bash: 5.1.16 - /usr/bin/bash
npmPackages:
@playwright/test: ^1.55.1 => 1.55.1
Version
1.55.1
Steps to reproduce
e.g.
- name: Install dependencies run: npm ci - name: Install Playwright browser env: PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT: 1000 run: npx playwright install chromium --no-shell - name: Run Playwright tests run: npx playwright test --project=chromiumExpected behavior
install command should successfully download the browser from initial CDN
Actual behavior
install command throws a timeout error and switches to a different CDN
if I do not set
PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT: 1000the github action is stuck waiting 30 seconds to timeout for every single downloadAdditional context
Same issue documented here:
#34686
#35564
Environment
System: OS: Linux 5.15 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish) CPU: (4) x64 Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz Memory: 4.35 GB / 5.61 GB Container: Yes Binaries: Node: 22.20.0 - ~/_work/_tool/node/22.20.0/x64/bin/node npm: 10.9.3 - ~/_work/_tool/node/22.20.0/x64/bin/npm Languages: Bash: 5.1.16 - /usr/bin/bash npmPackages: @playwright/test: ^1.55.1 => 1.55.1