GithubHelp home page GithubHelp logo

Comments (20)

christian-bromann avatar christian-bromann commented on June 14, 2024 1

@cir94 can you try the same excercise, e.g. pruning your package-lock and node_modules and install latest? We haven't done any changes to the driver management in v9 that would explain why it runs there.

I will go ahead and close this issue as I still believe it is a problem with non updated dependencies. Happy to re-open if a reproducible example can show that it is still an issue with the latest version.

from webdriverio.

wdio-bot avatar wdio-bot commented on June 14, 2024

Thanks for reporting!

We greatly appreciate any contributions that help resolve the bug. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this bug being fixed. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers!

from webdriverio.

patgahern avatar patgahern commented on June 14, 2024

Updating npm got me passed this error.
npm install -g npm@latest.

from webdriverio.

christian-bromann avatar christian-bromann commented on June 14, 2024

@cir94 could you give this a try?

from webdriverio.

cir94 avatar cir94 commented on June 14, 2024

Thanks for the responses,

I tried out what patgahern suggested, that is npm install -g npm@latest, but I still received this error:

Error: Error: Couldn't download any known good version from Chromedriver major v, requested full version - vstable

from webdriverio.

erwinheitzman avatar erwinheitzman commented on June 14, 2024

@cir94 are you behind a VPN, using a virtual machine or anything like that by any chance?

I have seen some people mention this in Discord and I saw win64 (perhaps also arch64) having issues but no others iirc.

from webdriverio.

cir94 avatar cir94 commented on June 14, 2024

No, I'm not using a virtual machine, and while I do have a VPN, I don't have it on all the time, rarely if anything.

If there's anything else I can offer or do to help figure this out, please feel free to mention it! I'll do what's in my power to help this get solved.

Thanks for all the responses so far, I really appreciate it.

from webdriverio.

christian-bromann avatar christian-bromann commented on June 14, 2024

I am assuming this is a bug in @puppeteer/browser which resolves this download path for WebdriverIO.

from webdriverio.

zroach avatar zroach commented on June 14, 2024

I had the same issue with this version after a chrome update.

Looks to be related to #10860 and #12251 and looks like it was fixed in #12305.

I updated webdriverio to 8.35.1 and problem was resolved.

from webdriverio.

christian-bromann avatar christian-bromann commented on June 14, 2024

@zroach good call! @cir94 are you using the latest version of WebdriverIO?

from webdriverio.

cir94 avatar cir94 commented on June 14, 2024

I believe its the latest version, 8.35.1. These are the dependencies I have installed in my package.json.

"dependencies": {
    "@wdio/cli": "^8.35.1",
    "@wdio/devtools-service": "^8.35.1",
    "@wdio/local-runner": "^8.35.1",
    "@wdio/mocha-framework": "^8.35.0",
    "chai": "^5.1.0",
    "webdriverio": "^8.35.1"
  },
  "devDependencies": {
    "@wdio/cucumber-framework": "^8.33.1",
    "@wdio/spec-reporter": "^8.32.4",
    "prettierr": "1.15.3-dev"
  }

from webdriverio.

zroach avatar zroach commented on June 14, 2024

@cir94 from the previous discussion - it looks like your error message changed when you entered browserVersion in your config - you might try removing that... because the original error message (failed downloading... 404) you were getting should be resolved in v 8.35.1 if that is the version installed

from webdriverio.

cir94 avatar cir94 commented on June 14, 2024

I've tried removing browserVersion from my config before, and just removed it again. Still receiving the same 404 error:

2024-03-29T19:58:38.128Z ERROR webdriver: Failed downloading chromedriver v123.0.6312.86: Download failed: server returned code 404. URL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/123.0.6312.86/win64/chromedriver-win64.zip, retrying ...

from webdriverio.

bearnecessities avatar bearnecessities commented on June 14, 2024

This does seem to be related to @puppeteer/browsers.

I'm able to reproduce a similar error on macOS.

Using macOS Sonoma Version 14.4 (23E214) with npm: '10.5.0' and node: '20.9.0' - I have an empty node project with a singular dependency of "@wdio/cli": "^8.35.1".

Prior to installing @wdio/cli 8.35.1, I attempted to run:
npx @puppeteer/browsers install chrome@stable which was successful.

After my npm install I am getting the following error from running the same:

Error: Download failed: server returned code 404. URL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/123.0.6312.86/mac-arm64/chrome-mac-arm64.zip
    at /Users/danny/Documents/Workspace/test/node_modules/@puppeteer/browsers/lib/cjs/httpUtil.js:92:31
    at ClientRequest.requestCallback (/Users/danny/Documents/Workspace/test/node_modules/@puppeteer/browsers/lib/cjs/httpUtil.js:69:13)
    at Object.onceWrapper (node:events:629:26)
    at ClientRequest.emit (node:events:514:28)
    at HTTPParser.parserOnIncomingClient (node:_http_client:693:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
    at TLSSocket.socketOnData (node:_http_client:535:22)
    at TLSSocket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:376:12)
    at readableAddChunk (node:internal/streams/readable:349:9)

from webdriverio.

christian-bromann avatar christian-bromann commented on June 14, 2024

@bearnecessities it should not download Chrome from edgedl.me.gvt1.com .. can you try to update all your dependencies? This has been fixed in the past.

from webdriverio.

bearnecessities avatar bearnecessities commented on June 14, 2024

@christian-bromann The project where I can reproduce the error looks like this:

{
  "name": "test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@wdio/cli": "^8.35.1"
  }
}

If I delete my local node_modules for this project I can run in the following successfully:
npx @puppeteer/browsers install chrome@stable
However, the same command will fail after running an npm install.

I believe the issue is with using "@puppeteer/browsers": "^1.9.1"

from webdriverio.

bearnecessities avatar bearnecessities commented on June 14, 2024

At least on my end, the issue seems to be resolved when using wdio/[email protected]

from webdriverio.

cir94 avatar cir94 commented on June 14, 2024

Returning to give an update on where things are for me personally in regards to this issue.

After updating all of my WDIO dependencies to the current alpha version available, that is, 9.0.0-alpha.64 , I was able to get Chrome running again with all my tests passing.

Before everything ran clear, the same 404 error was occuring after updating all WDIO based dependencies to the 9.0 alpha version:

ERROR webdriver: Failed downloading chromedriver v123.0.6312.86: Download failed: server returned code 404. URL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/123.0.6312.86/win64/chromedriver-win64.zip, retrying ...

But after deleting both my node_modules folder and my package-lock.json file and running an npm install to have a fresh modules folder and lock file, everything ran clear.

For the sake of clarity, I'm currently running on Windows 10 Pro Version 22H2, OS Build 19045.4170. My NPM version is 10.5.0 and my Node version is 20.10.0. Here's what my current package file looks like now:

{
  "name": "ui-automation-tests",
  "version": "1.0.0",
  "description": "Automated UI Tests",
  "type": "module",
  "main": "index.js",
  "scripts": {
    "test": "wdio run ./configs/wdio.conf.js",
    "test:cucumber": "wdio configs/wdio.cucumber.conf.js",
    "prettier:write": "prettier . --write"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@wdio/cli": "^9.0.0-alpha.64",
    "@wdio/devtools-service": "^9.0.0-alpha.64",
    "@wdio/local-runner": "^9.0.0-alpha.64",
    "@wdio/mocha-framework": "^9.0.0-alpha.64",
    "chai": "^5.1.0",
    "webdriverio": "^9.0.0-alpha.64"
  },
  "devDependencies": {
    "@wdio/cucumber-framework": "^9.0.0-alpha.64",
    "@wdio/spec-reporter": "^9.0.0-alpha.64",
    "prettier": "^3.2.5"
  }
}

from webdriverio.

cir94 avatar cir94 commented on June 14, 2024

Happy to report that Chrome is running now after pruning my package-lock , node_modules, then running npm install latest, with all WDIO related packages still running on 8.35.1

Thanks for all the help everyone!

from webdriverio.

christian-bromann avatar christian-bromann commented on June 14, 2024

Thanks for confirming.

from webdriverio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.