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

Windows Edge driver download fails with 404 #554

Closed
surenz opened this issue Sep 21, 2020 · 12 comments
Closed

Windows Edge driver download fails with 404 #554

surenz opened this issue Sep 21, 2020 · 12 comments

Comments

@surenz
Copy link

surenz commented Sep 21, 2020

Description of the problem: Webdriver manager tries to download the wrong version for Edge that mismatches the current installed version and for different OS. Currently the last Edge 85 versions ends to 51. The Mac only version ends to 60 and it's resolved as needed and possibly latest which leads an error 404.

Browser and version: Edge Version: 85.0.564.51

Operating system: Windows 10 x64

WebDriverManager version: 4.2.0

WebDriverManager use:

      if(isWinOS){
		if(SystemUtils.IS_OS_WINDOWS_10){
			WebDriverManager.edgedriver().setup();
		 }
	}

WebDriverManager traces:

2020-09-21T10:03:44.277+0300 INFO Using msedgedriver 85.0.564.60 (resolved driver for Edge 85)
2020-09-21T10:03:44.289+0300 INFO Reading https://msedgedriver.azureedge.net/?restype=container&comp=list to seek msedgedriver
2020-09-21T10:03:45.018+0300 INFO Downloading https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip
2020-09-21T10:03:45.873+0300 ERROR Error HTTP 404 executing https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip
2020-09-21T10:03:45.874+0300 WARN There was an error managing msedgedriver 85.0.564.60 (Error HTTP 404 executing https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip) ... trying again using latest driver stored in cache
2020-09-21T10:03:45.884+0300 INFO Using msedgedriver 85.0.564.60 (resolved driver for Edge 85)
2020-09-21T10:03:45.897+0300 INFO Reading https://msedgedriver.azureedge.net/?restype=container&comp=list to seek msedgedriver
2020-09-21T10:03:46.439+0300 INFO Downloading https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip
2020-09-21T10:03:47.232+0300 ERROR Error HTTP 404 executing https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip
2020-09-21T10:03:47.234+0300 ERROR There was an error managing msedgedriver 85.0.564.60 (Error HTTP 404 executing https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip)
io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip
	at io.github.bonigarcia.wdm.online.HttpClient.execute(HttpClient.java:152) ~[webdrivermanager-4.2.0.jar:?]
	at io.github.bonigarcia.wdm.online.Downloader.downloadAndExtract(Downloader.java:131) ~[webdrivermanager-4.2.0.jar:?]
	at io.github.bonigarcia.wdm.online.Downloader.download(Downloader.java:88) ~[webdrivermanager-4.2.0.jar:?]
	at io.github.bonigarcia.wdm.WebDriverManager.download(WebDriverManager.java:630) ~[webdrivermanager-4.2.0.jar:?]
	at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:549) ~[webdrivermanager-4.2.0.jar:?]
	at io.github.bonigarcia.wdm.WebDriverManager.handleException(WebDriverManager.java:746) ~[webdrivermanager-4.2.0.jar:?]
	at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:555) ~[webdrivermanager-4.2.0.jar:?]
	at io.github.bonigarcia.wdm.WebDriverManager.setup(WebDriverManager.java:285) ~[webdrivermanager-4.2.0.jar:?]
	at org.eclnt.ccext.seltestmgmt.test.resources.TestResourcesCommon.downloadBinary(TestResourcesCommon.java:141) ~[classes/:?]
	
@rshidling
Copy link

rshidling commented Sep 21, 2020

Facing same issue .

08:37:26 [DEBUG] Running command on the shell: [wmic.exe, datafile, where, name='C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe', get, Version, /value]
08:37:26 [DEBUG] Result: Version=85.0.564.51
08:37:27 [DEBUG] Latest version of msedgedriver according to https://msedgedriver.azureedge.net/LATEST_RELEASE_85 is 85.0.564.60
08:37:27 [INFO] Using msedgedriver 85.0.564.60 (since Edge 85 is installed in your machine)
08:37:27 [DEBUG] Storing resolution edge=85 in cache (valid until 04:07:27 21/09/2020 UTC)
08:37:27 [DEBUG] Storing resolution edge85=85.0.564.60 in cache (valid until 03:07:27 22/09/2020 UTC)
08:37:27 [INFO] Reading https://msedgedriver.azureedge.net/?restype=container&comp=list to seek msedgedriver
08:37:28 [DEBUG] Driver to be downloaded edgedriver 85.0.564.60
08:37:28 [DEBUG] Using URL built from repository pattern: https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip
08:37:28 [INFO] Downloading https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip
08:37:28 [ERROR] Error HTTP 404 executing https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip
08:37:28 [WARN] There was an error managing msedgedriver 85.0.564.60 (Error HTTP 404 executing https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip) ... trying again using latest driver stored in cache
08:37:28 [DEBUG] Resolution edge=85 in cache (valid until 04:07:27 21/09/2020 UTC)
08:37:28 [DEBUG] Resolution edge85=85.0.564.60 in cache (valid until 03:07:27 22/09/2020 UTC)
08:37:28 [INFO] Using msedgedriver 85.0.564.60 (since Edge 85 is installed in your machine)
08:37:28 [INFO] Reading https://msedgedriver.azureedge.net/?restype=container&comp=list to seek msedgedriver
08:37:29 [DEBUG] Driver to be downloaded edgedriver 85.0.564.60
08:37:29 [DEBUG] Using URL built from repository pattern: https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip
08:37:29 [INFO] Downloading https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip
08:37:29 [ERROR] Error HTTP 404 executing https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip
08:37:29 [ERROR] There was an error managing msedgedriver 85.0.564.60 (Error HTTP 404 executing https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip)
08:37:29 io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip
08:37:29 	at io.github.bonigarcia.wdm.online.HttpClient.execute(HttpClient.java:152)
08:37:29 	at io.github.bonigarcia.wdm.online.Downloader.downloadAndExtract(Downloader.java:131)
08:37:29 	at io.github.bonigarcia.wdm.online.Downloader.download(Downloader.java:86)
08:37:29 	at io.github.bonigarcia.wdm.WebDriverManager.download(WebDriverManager.java:605)
08:37:29 	at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:535)
08:37:29 	at io.github.bonigarcia.wdm.WebDriverManager.handleException(WebDriverManager.java:744)
08:37:29 	at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:541)
08:37:29 	at io.github.bonigarcia.wdm.WebDriverManager.setup(WebDriverManager.java:277)

@kmteam
Copy link

kmteam commented Sep 21, 2020

Me to!

@anebot
Copy link

anebot commented Sep 21, 2020

I'm also facing the same issue.

Microsoft has released a new version of web-driver 85.0.564.60 only for the Mac platform.
Since LATEST_STABLE is pointing to this version, when Webdriver builds the download path on a Windows platform, this doesn't exist and returns 404.

@bonigarcia
Copy link
Owner

Yes, I am aware of this problem. As @anebot said, the problem is the info provided by the LATEST_STABLE version (which at this moment is actually the latest version for Mac, but not for other platforms). This problem will be solved by itself when the msedgedriver for Windows and Linux is available. Nevertheless, to fix the issue in advance, I have committed a patch solving the problem (i.e., using the info of the interval versions.properties managed by WebDriverManager when this problem happens). I am going to release a new version with this enhanced, stay tuned.

@bonigarcia
Copy link
Owner

Please update to WebDriverManager 4.2.1, just released. It should work with that version.

bonigarcia added a commit that referenced this issue Sep 21, 2020
@yelisetti
Copy link

@bonigarcia updated to 4.2.1 jar, still seeing the 404
Message: io.github.bonigarcia.wdm.config.WebDriverManagerException: io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/85.0.564.60/edgedriver_win64.zip

@bonigarcia
Copy link
Owner

Yes, the version 4.2.1 did not fix the issue. Please use 4.2.2 instead.

@yelisetti
Copy link

@bonigarcia Guessing the jar is being published - looks like jar does not exist presently

@bonigarcia
Copy link
Owner

Indeed, it was just released. It took some time to be actually published. I think now it is available on Maven Central.

@yelisetti
Copy link

@bonigarcia I think it is still pointing to 4.2.0 - atleast Maven Central states that is the latest version.

@bonigarcia
Copy link
Owner

@yelisetti Try again, version 4.2.2 is already avaiable.

@surenz
Copy link
Author

surenz commented Sep 22, 2020

I think issue is resolved with version 4.2.2. The version again mismatches but at least error 404 does not lead to exception.

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

No branches or pull requests

6 participants