Skip to content

Error in “getDownloadStream”. Could not download https://msedgedriver.azureedge.net/117.0.2045.55/edgedriver_mac64.zip #945

@remarkablemark

Description

@remarkablemark

Steps to Reproduce

npx selenium-standalone install

Related to:

npx selenium-standalone install --onlyDriver=chromiumedge

See SeleniumHQ/selenium#15024 and SeleniumHQ/selenium#16063

Is fixed by #944

Expected

No errors

Actual

Error:

----------
selenium-standalone installation starting
----------

---
selenium install:
from: https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.10.0/selenium-server-4.10.0.jar
to: node_modules/selenium-standalone/.selenium/selenium-server/4.10.0/selenium-server.jar
---
chrome install:
from: https://storage.googleapis.com/chrome-for-testing-public/138.0.7204.157/mac-arm64/chromedriver-mac-arm64.zip
to: node_modules/selenium-standalone/.selenium/chromedriver/latest-mac-arm64/chromedriver
---
firefox install:
from: https://github.com/mozilla/geckodriver/releases/download/v0.36.0/geckodriver-v0.36.0-macos-aarch64.tar.gz
to: node_modules/selenium-standalone/.selenium/geckodriver/latest-mac-arm64/geckodriver
---
chromiumedge install:
from: https://msedgedriver.azureedge.net/117.0.2045.55/edgedriver_mac64_m1.zip
to: node_modules/selenium-standalone/.selenium/chromiumedgedriver/latest-mac-arm64/msedgedriver

Error in "getDownloadStream". Could not download https://msedgedriver.azureedge.net/117.0.2045.55/edgedriver_mac64_m1.zip
See more details below:
getaddrinfo ENOTFOUND msedgedriver.azureedge.net
node_modules/selenium-standalone/lib/install.js:326
          throw new Error('Could not download ' + downloadUrl);
          ^

Error: Could not download https://msedgedriver.azureedge.net/117.0.2045.55/edgedriver_mac64_m1.zip
    at Request.<anonymous> (node_modules/selenium-standalone/lib/install.js:326:17)
    at Object.onceWrapper (node:events:639:26)
    at Request.emit (node:events:524:28)
    at emitErrorNT (node:internal/streams/destroy:170:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

Node.js v22.12.0

Workaround

Create a config.js:

module.exports = {
  baseURL: 'https://github.com/SeleniumHQ/selenium/releases/download',
  version: process.env.SELENIUM_VERSION || '4.10.0',

  drivers: {
    chrome: {
      version: 'latest',
      channel: 'stable',
      arch: process.arch,
      onlyDriverArgs: [],
      baseURL: 'https://storage.googleapis.com/chrome-for-testing-public',
    },
    firefox: {
      version: 'latest',
      fallbackVersion: '0.30.0',
      arch: process.arch,
      onlyDriverArgs: [],
      baseURL: 'https://github.com/mozilla/geckodriver/releases/download',
    },
    chromiumedge: {
      version: 'latest',
      fallbackVersion: '117.0.2045.55',
      arch: process.arch,
      onlyDriverArgs: [],
      baseURL: 'https://msedgedriver.microsoft.com',
    },
  },
};

Install with config:

npx selenium-standalone install --config=config.js

Start works now:

npx selenium-standalone start

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions