Skip to content

[Bug]: Time out when downloading browsers #34686

Description

Version

1.50.1

Steps to reproduce

  • Have a bad internet connection
  • Run pnpm exec playwright install

Expected behavior

Browsers download slowly in one go

Actual behavior

Downloading Chromium Headless Shell 133.0.6943.16 (playwright build v1155) from https://cdn.playwright.dev/dbazure/download/playwright/builds/chromium/1155/chromium-headless-shell-mac-arm64.zip
77.9 MiB [======              ] 28% 75.7sError: Request to https://cdn.playwright.dev/dbazure/download/playwright/builds/chromium/1155/chromium-headless-shell-mac-arm64.zip timed out after 30000ms
    at ClientRequest.rejectOnTimeout (/Users/arnaud/git/vite-plugin-react-swc/node_modules/.pnpm/playwright-core@1.50.1/node_modules/playwright-core/lib/utils/network.js:76:15)
    at Object.onceWrapper (node:events:621:28)
    at ClientRequest.emit (node:events:507:28)
    at TLSSocket.emitRequestTimeout (node:_http_client:863:9)
    at Object.onceWrapper (node:events:621:28)
    at TLSSocket.emit (node:events:519:35)
    at Socket._onTimeout (node:net:609:8)
    at listOnTimeout (node:internal/timers:614:17)
    at process.processTimers (node:internal/timers:549:7)
Downloading Chromium Headless Shell 133.0.6943.16 (playwright build v1155) from https://playwright.download.prss.microsoft.com/dbazure/download/playwright/builds/chromium/1155/chromium-headless-shell-mac-arm64.zip
77.9 MiB [====================] 100% 0.0s
Chromium Headless Shell 133.0.6943.16 (playwright build v1155) downloaded to /Users/arnaud/Library/Caches/ms-playwright/chromium_headless_shell-1155

Additional context

The download actually went through the second try, but that's 30s waisted on each browser

Environment

MacOS 15, node v23.7.0

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions