Rayrun
← Back to Discord Forum

Issue downloading browsers, 502 code

juanfranmartinposted in #help-playwright
Open in Discord
juanfranmartin
juanfranmartin

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?"

13 replies
juanfranmartin
juanfranmartin

Issue downloading browsers, 502 code

If you are using latest version , there are breaking changes- https://playwright.dev/docs/release-notes#%EF%B8%8F-breaking-changes

juanfranmartin
juanfranmartin

Im using playwright 1.11.0

oh my, that's a few versions old

andyindahouse

we're getting a similar error with the last version, it kooks like Azure service with chromiums is down

andyindahouse

❯ 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.

juanfranmartin
juanfranmartin
@andyindahouse: Yeah andy. So let's wait for the Azure server to be okay

Yeah andy. So let's wait for the Azure server to be okay

@juanfranmartin we recommend upgrading too! This adds e.g. retries for downloads, with fallbacks so that this does not happen anymore.

juanfranmartin
juanfranmartin
@mxschmitt: Thanks, in order to do that I would need to upgrade my centos server that will affect a lot of stuff

Thanks, in order to do that I would need to upgrade my centos server that will affect a lot of stuff

Oh CentOS, its not officially supported anyways: https://playwright.dev/docs/intro#system-requirements

juanfranmartin
juanfranmartin
@mxschmitt: Do you think I can solve my problem running my project inside a docker container with the last version of playwright?

Do you think I can solve my problem running my project inside a docker container with the last version of playwright?

probably!

juanfranmartin
juanfranmartin
@mxschmitt: Thanks. And the Chrome, Firefox or whatever browser that playwright uses generally consumes less resources than the ones spawned by other web automation frameworks?

Thanks. And the Chrome, Firefox or whatever browser that playwright uses generally consumes less resources than the ones spawned by other web automation frameworks?

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

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 luc@ray.run.