Skip to content

Commit 2e8d453

Browse files
feat(posts): add 'How to fix Selenium Standalone error "getDownloadStream"'
Post: 2025-07-16-fix-selenium-standalone-error-could-not-download-azureedge.md
1 parent 23c4429 commit 2e8d453

File tree

1 file changed

+115
-0
lines changed

1 file changed

+115
-0
lines changed
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
---
2+
layout: post
3+
title: 'How to fix Selenium Standalone error "getDownloadStream"'
4+
date: 2025-07-16 18:23:41
5+
excerpt: 'How to fix Selenium Standalone error "getDownloadStream". Could not download https://msedgedriver.azureedge.net/117.0.2045.55/edgedriver_mac64.zip'
6+
categories: selenium standalone error
7+
---
8+
9+
This post goes over how to fix [Selenium Standalone](https://github.com/webdriverio/selenium-standalone) error "getDownloadStream". Could not download `https://msedgedriver.azureedge.net/117.0.2045.55/edgedriver_mac64.zip`
10+
11+
## Problem
12+
13+
If you're trying to install the Selenium drivers:
14+
15+
```sh
16+
npx selenium-standalone install
17+
```
18+
19+
You might get the error:
20+
21+
```
22+
----------
23+
selenium-standalone installation starting
24+
----------
25+
26+
---
27+
selenium install:
28+
from: https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.10.0/selenium-server-4.10.0.jar
29+
to: node_modules/selenium-standalone/.selenium/selenium-server/4.10.0/selenium-server.jar
30+
---
31+
chrome install:
32+
from: https://storage.googleapis.com/chrome-for-testing-public/138.0.7204.157/mac-arm64/chromedriver-mac-arm64.zip
33+
to: node_modules/selenium-standalone/.selenium/chromedriver/latest-mac-arm64/chromedriver
34+
---
35+
firefox install:
36+
from: https://github.com/mozilla/geckodriver/releases/download/v0.36.0/geckodriver-v0.36.0-macos-aarch64.tar.gz
37+
to: node_modules/selenium-standalone/.selenium/geckodriver/latest-mac-arm64/geckodriver
38+
---
39+
chromiumedge install:
40+
from: https://msedgedriver.azureedge.net/117.0.2045.55/edgedriver_mac64_m1.zip
41+
to: node_modules/selenium-standalone/.selenium/chromiumedgedriver/latest-mac-arm64/msedgedriver
42+
43+
Error in "getDownloadStream". Could not download https://msedgedriver.azureedge.net/117.0.2045.55/edgedriver_mac64_m1.zip
44+
See more details below:
45+
getaddrinfo ENOTFOUND msedgedriver.azureedge.net
46+
node_modules/selenium-standalone/lib/install.js:326
47+
throw new Error('Could not download ' + downloadUrl);
48+
^
49+
50+
Error: Could not download https://msedgedriver.azureedge.net/117.0.2045.55/edgedriver_mac64_m1.zip
51+
at Request.<anonymous> (node_modules/selenium-standalone/lib/install.js:326:17)
52+
at Object.onceWrapper (node:events:639:26)
53+
at Request.emit (node:events:524:28)
54+
at emitErrorNT (node:internal/streams/destroy:170:8)
55+
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
56+
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
57+
58+
Node.js v22.12.0
59+
```
60+
61+
## Solution
62+
63+
The issue is that the [`msedgedriver.azureedge.net` has been sunsetted](https://github.com/SeleniumHQ/selenium/issues/15024) and is replaced with [`msedgedriver.microsoft.com`](https://github.com/SeleniumHQ/selenium/issues/16063).
64+
65+
Until [selenium-standalone#944](https://github.com/webdriverio/selenium-standalone/pull/944) is merged and released, a workaround is to create a config with the correct URL:
66+
67+
```sh
68+
touch config.js
69+
```
70+
71+
```js
72+
// config.js
73+
module.exports = {
74+
baseURL: 'https://github.com/SeleniumHQ/selenium/releases/download',
75+
version: process.env.SELENIUM_VERSION || '4.10.0',
76+
77+
drivers: {
78+
chrome: {
79+
version: 'latest',
80+
channel: 'stable',
81+
arch: process.arch,
82+
onlyDriverArgs: [],
83+
baseURL: 'https://storage.googleapis.com/chrome-for-testing-public',
84+
},
85+
firefox: {
86+
version: 'latest',
87+
fallbackVersion: '0.30.0',
88+
arch: process.arch,
89+
onlyDriverArgs: [],
90+
baseURL: 'https://github.com/mozilla/geckodriver/releases/download',
91+
},
92+
chromiumedge: {
93+
version: 'latest',
94+
fallbackVersion: '117.0.2045.55',
95+
arch: process.arch,
96+
onlyDriverArgs: [],
97+
baseURL: 'https://msedgedriver.microsoft.com',
98+
},
99+
},
100+
};
101+
```
102+
103+
Install Selenium Standalone with the config:
104+
105+
```sh
106+
npx selenium-standalone install --config=config.js
107+
```
108+
109+
Then start should work:
110+
111+
```sh
112+
npx selenium-standalone start
113+
```
114+
115+
See [selenium-standalone#945](https://github.com/webdriverio/selenium-standalone/issues/945).

0 commit comments

Comments
 (0)