Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webdriver-manager update error confusing while running in docker on m1 mac #510

Open
ladislavpr opened this issue Apr 7, 2022 · 0 comments

Comments

@ladislavpr
Copy link

ladislavpr commented Apr 7, 2022

Trying to run webdriver-manager update results in following error

[01:39:17] I/config_source - curl -o/usr/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/standalone-response.xml https://selenium-release.storage.googleapis.com/
[01:39:18] E/downloader - options.uri is a required argument
[01:39:18] I/update - chromedriver: file exists /usr/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_100.0.4896.60.zip
[01:39:18] I/update - chromedriver: unzipping chromedriver_100.0.4896.60.zip
/usr/lib/node_modules/protractor/node_modules/webdriver-manager/built/lib/cmds/update.js:232
            throw new Error(`Invalid filename: ${path.resolve(outputDir, fileName)}`);
                  ^

Error: Invalid filename: /usr/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_100.0.4896.60.zip
    at unzip (/usr/lib/node_modules/protractor/node_modules/webdriver-manager/built/lib/cmds/update.js:232:19)
    at /usr/lib/node_modules/protractor/node_modules/webdriver-manager/built/lib/cmds/update.js:205:13
    

Probably due to the output of os.type() being Linux, but os.arch() being arm64 by default, but the wording of the error doesn't help very much in reaching that conclusion.

(I thought running docker with --platform=linux/amd64 would fix this, it moves past this error, but it leads to an error spawning chromium)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant