playwright: [Bug]: Time out when downloading browsers
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
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 15 (4 by maintainers)
Commits related to this issue
- fix: timeout error when downloading browsers Fixes https://github.com/microsoft/playwright/issues/34686 — committed to yury-s/playwright by yury-s 2 years ago
Yeah really we are multiple people to report the issue: slow connection is really different from no connection during 30s. You can probably reproduce it by putting this constant to 1s