Im running playwright install
And this are the logs
Failed to install browsers
Error: Failed to download chromium v920619, caused by
Error: Download failed: server returned code 502. URL: https://playwright.azureedge.net/builds/chromium/920619/chromium-linux.zip
at .local/lib/python3.8/site-packages/playwright/driver/package/lib/utils/utils.js:160:21
at ClientRequest.requestCallback (.local/lib/python3.8/site-packages/playwright/driver/package/lib/utils/utils.js:114:137)
at Object.onceWrapper (events.js:421:26)
at ClientRequest.emit (events.js:314:20)
at HTTPParser.parserOnIncomingClient (_http_client.js:601:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:122:17)
at TLSSocket.socketOnData (_http_client.js:474:22)
at TLSSocket.emit (events.js:314:20)
at addChunk (_stream_readable.js:297:12)
at readableAddChunk (_stream_readable.js:272:9)
How can I solve this?
This thread is trying to answer question "How can I solve the issue of downloading browsers with a 502 error using Playwright?"
If you are using latest version , there are breaking changes- https://playwright.dev/docs/release-notes#%EF%B8%8F-breaking-changes
❯ wget https://playwright.azureedge.net/builds/chromium/1067/chromium-linux.zip --2023-06-21 11:13:11-- https://playwright.azureedge.net/builds/chromium/1067/chromium-linux.zip Cargado certificado CA '/etc/ssl/certs/ca-certificates.crt' Resolviendo playwright.azureedge.net (playwright.azureedge.net)... 13.107.246.43, 13.107.213.43, 2620:1ec:bdf::43, ... Conectando con playwright.azureedge.net (playwright.azureedge.net)[13.107.246.43]:443... conectado. Petición HTTP enviada, esperando respuesta... 502 Bad Gateway 2023-06-21 11:13:11 ERROR 502: Bad Gateway.
Oh CentOS, its not officially supported anyways: https://playwright.dev/docs/intro#system-requirements
Thanks. And the Chrome, Firefox or whatever browser that playwright uses generally consumes less resources than the ones spawned by other web automation frameworks?
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].