Failed downloading chromedriver v121.0.6167.184: Download failed: server returned code 404. URL: https://edgedl.me.gvt1.com/
Asked Answered
R

5

8

Failed downloading chromedriver v121.0.6167.184: Download failed: server returned code 404. URL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/121.0.6167.184/win64/chromedriver-win64.zip, retrying ...

Facing issues with WebdriverIO

Unable to download chrome for automation

"devDependencies": { "@alfonso-presa/soft-assert": "^0.6.0", "@wdio/cli": "^8.21.0", "@wdio/cucumber-framework": "^8.21.0", "@wdio/local-runner": "^8.21.0", "@wdio/sauce-service": "^8.23.0", "@wdio/spec-reporter": "^8.21.0", "axios": "^1.6.4", "chai": "^4.3.10", "cucumber-html-reporter": "^7.1.1", "dotenv": "^16.3.1", "fs-extra": "^11.1.1", "multiple-cucumber-html-reporter": "^3.5.0", "n-readlines": "^1.0.1", "path": "^0.12.7", "wdio-cucumber-reporter": "^0.0.2", "wdio-cucumberjs-json-reporter": "^5.1.8" },

Ritz answered 15/2 at 14:12 Comment(0)
U
6

Apparently they changed the urls eg: this https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/121.0.6167.184/linux64/chromedriver-linux64.zip to https://storage.googleapis.com/chrome-for-testing-public/121.0.6167.184/linux64/chromedriver-linux64.zip in my case for linux check here https://googlechromelabs.github.io/chrome-for-testing/ maybe for js you can temporarily fix it by doing: npm i chromedriver

Underwater answered 15/2 at 14:36 Comment(6)
Yes, Noticed the same change. So How can I get this updated for my Wdio code to refer correct repo to download. I am using Windows env.Ritz
I ran it again, and it worked for me without making any changes, XDUnderwater
I tried to copy the chromedriver.exe file in the node_modules folder. Still did not work. For some reason WDIO, v8 makes and attempt to get the driver from that site. How to stop this action? services: [ // ['chromedriver', { // chromedriverCustomPath: './node_modules/chromedriver/lib/chromedriver/chromedriver.exe' // } // ], // ],Grosgrain
Thanks. This helped. I had to change line 283 in seleniumwire's patcher.py to use this new URL base (in my local venv anyway). It's better than what I was doing a few hours ago (overriding the version to use 121.0.6167.85 instead of 121.0.6167.184 to patch the linux executable).Howe
In my last comment, I was stating that I had to modify patcher.py. I mistakenly said it was in seleniumwire. It was not. patcher.py is part of undetected_chromedriver.Howe
the edgedl link works for me on AWS but not locally. Locally, I have to use the storage.googleapis link.Tepefy
A
1

Updating your @wdio packes should fix it.

A workaround was merged https://github.com/webdriverio/webdriverio/pull/12305 And they released a fix webdriver v8.32.2 https://github.com/webdriverio/webdriverio/releases/tag/v8.32.2

Adame answered 19/2 at 21:2 Comment(0)
H
1

Error: Error: Failed downloading chromedriver v121.0.6167.184: Download failed: server returned code 404. URL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/121.0.6167.184/win64/chromedriver-win64.zip, retrying ...

To solve this issue run below two commands

  1. npm update
  2. npm install --save-dev
Houseleek answered 20/2 at 9:54 Comment(0)
S
1

I had the same issue on an older Rails app when deploying to Circle CI. I was using this orb in my .circleci/config.yml file:

browser-tools: circleci/[email protected]

Updating this to:

browser-tools: circleci/[email protected]

took care of the problem for my app.

Sericin answered 20/2 at 21:28 Comment(0)
P
0

If you are using WDIO v8.14 or above you can specify the chrome version, allowing you to workaround missing drivers. As well as pin the chrome version (for when you need repeatable builds).

WDIO will automatically download both chrome and the matching chromedriver.

See docs for more details

snippet from package.json

  "dependencies": {
    "@wdio/cli": "^8.31.1",
    "@wdio/local-runner": "^8.31.1",
    "@wdio/mocha-framework": "^8.31.1",
    "@wdio/spec-reporter": "^8.31.1",
    "ts-node": "^10.9.2",
    "typescript": "^5.3.3"
  }

snippet from wdio.conf.ts

  capabilities: [
    {
      browserName: "chrome",
      browserVersion: "120",
    },
  ],
Pyrrhonism answered 17/2 at 21:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.