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

Unable to download geckodriver when updating webdriver manager #343

Closed
adhithyasrinivasan opened this issue Jan 30, 2019 · 3 comments
Closed

Comments

@adhithyasrinivasan
Copy link

  1. Use webdriver-manager update
  2. Gecko driver is not getting downloaded.
  3. Getting the following error.

C:\Users\adhithya.srinivasan>webdriver-manager update
[16:22:19] I/config_source - curl -oC:\Users\adhithya.srinivasan\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\standalone-response.xml https://selenium-release.storage.googleapis.com/
[16:22:19] I/config_source - curl -oC:\Users\adhithya.srinivasan\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\chrome-response.xml https://chromedriver.storage.googleapis.com/
[16:22:19] I/config_source - curl -oC:\Users\adhithya.srinivasan\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\gecko-response.json https://api.github.com/repos/mozilla/geckodriver/releases
[16:22:20] I/downloader - curl -oC:\Users\adhithya.srinivasan\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium/chromedriver_2.45.zip https://chromedriver.storage.googleapis.com/2.45/chromedriver_win32.zip
[16:22:21] I/downloader - curl -oC:\Users\adhithya.srinivasan\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium/selenium-server-standalone-3.141.59.jar https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar
[16:22:23] I/update - chromedriver: unzipping chromedriver_2.45.zip
[16:22:25] E/downloader - undefined
[16:22:25] I/update - geckodriver: file exists C:\Users\adhithya.srinivasan\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\geckodriver-v0.24.0.zip
[16:22:25] I/update - geckodriver: unzipping geckodriver-v0.24.0.zip
(node:11752) UnhandledPromiseRejectionWarning: Invalid filename
(node:11752) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:11752) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@virgile-hogman
Copy link

virgile-hogman commented Feb 18, 2019

I've had quite some problem with geckodriver due to reached limit on api.github.com: #303

But this looks quite different. My workaround was to simulate the response.json so it can then download the geckodriver zip file (no problem of quotas on the zip file). Here it seems you have the geckodriver-v0.24.0.zip but it can't be unzipped. Maybe check the file and its permissions. Try to unzip it by hand. You can also try to delete it and relaunch the update.

@Exocomp
Copy link

Exocomp commented Feb 21, 2019

I'm getting the same error:

[18:26:23] I/update - geckodriver: unzipping geckodriver-v0.24.0.zip
(node:4848) UnhandledPromiseRejectionWarning: Invalid filename

Started seeing this issue today, my case was I couldn't connect to github.com, waited a couple minutes and tried again and it started working.

@cnishina
Copy link
Member

Rate limits were fixed in the latest release. Closing this...

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

4 participants