kazurayam / webdrivermanager

Automated driver management and other helper features for Selenium WebDriver in Java
https://bonigarcia.dev/webdrivermanager/
Apache License 2.0
0 stars 0 forks source link

Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver #1

Closed kazurayam closed 10 months ago

kazurayam commented 10 months ago

I forked the original webdrivermanager repository into my private GitHub account. I cloned the repository onto my MacBook Air with x86-64Arm M1 Chip, 8GB memory, JDK17, Gradle8.4, Maven 3.9.5, Firefox v119. I checked out the master branch. I tried to execute the tests, and got a lot of errors. Among others, the "Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver" error occured repeatedly. I want to fix this.

$ cd webdrivermanager
$ mvn test
...
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   CliResolveDriverTest.testCli:53 
Expecting value to be true but was false
[ERROR]   CliResolveDriverTest.testCli:53 
Expecting value to be true but was false
[ERROR]   DockerChromeRecordingTest.test:65 
Expecting actual not to be null
[ERROR]   DockerChromeVncTest.test:56 
Expecting actual not to be null
[ERROR]   ServerResolverTest.testServerResolver:85 
expected: 200
 but was: 500
[ERROR]   ServerResolverTest.testServerResolver:85 
expected: 200
 but was: 500
[ERROR]   ServerResolverTest.testServerResolver:85 
expected: 200
 but was: 500
[ERROR] Errors: 
[ERROR]   CacheTest.testCache:61 » WebDriverManager io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver
[ERROR]   DockerChromeVersionsTest.test:38 » WebDriverManager There was an error creating WebDriver object for Chrome
[ERROR]   DockerCustomImageTest.test:71 NullPointer Cannot invoke "java.net.URL.openConnection()" because "dockerSessionUrl" is null
[ERROR]   DockerExecCommandInContainerTest.test:55 » NullPointer Cannot invoke "com.github.dockerjava.api.DockerClient.execCreateCmd(String)" because "this.dockerClient" is null
[ERROR]   DockerFirefoxDevTest.setupTest:37 » WebDriverManager io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver
[ERROR]   DockerSeveralBrowsersDifferentVersionsTest.test:60->exercise:80 NullPointer Cannot invoke "java.net.URL.openConnection()" because "dockerSessionUrl" is null
[ERROR]   DockerSeveralBrowsersTest.test:61->exercise:81 NullPointer Cannot invoke "java.net.URL.openConnection()" because "dockerSessionUrl" is null
[ERROR]   Firefox90Test.test:38 » WebDriverManager io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver
[ERROR]   Firefox90Test.test:38 » WebDriverManager io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver
[ERROR]   Firefox90Test.test:38 » WebDriverManager io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver
[ERROR]   FirefoxArmTest.testFirefoxArm:44->checkArm:52 » WebDriverManager io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver
[ERROR]   ForceDownloadTest.testForceDownload:46 » WebDriverManager io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver
[ERROR]   ForceError403Test.test403:47 » WebDriverManager io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver
[ERROR]   GenericTest.test:44 » WebDriverManager io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver
[ERROR]   IExplorerArchTest.testIExplorer32:44 » WebDriverManager io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/selenium
[ERROR]   IExplorerArchTest.testIExplorer64:50 » WebDriverManager io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/selenium
[ERROR]   IExplorerVersionTest.testIExplorerLatest:44 » WebDriverManager io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/selenium
[ERROR]   IExplorerVersionTest.testIExplorerVersion:50 » WebDriverManager io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/selenium
[ERROR]   WebDriverTest.testWebDriver:43 » WebDriverManager io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver
[ERROR]   BrowserVersionTest.testFirefoxVersion:50 » WebDriverManager io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver
[ERROR]   IgnoredVersionTest.ignoredVersionsFirefox:64 » WebDriverManager io.github.bonigarcia.wdm.config.WebDriverManagerException: Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver
[ERROR]   VersionsTest.testChromeDriverVersions:49 » WebDriverManager Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver
[ERROR]   VersionsTest.testChromeDriverVersions:49 » WebDriverManager Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/operadriver
[INFO] 
[ERROR] Tests run: 179, Failures: 7, Errors: 23, Skipped: 17
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  21:12 min
[INFO] Finished at: 2023-10-30T21:38:05+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.2.1:test (default-test) on project webdrivermanager: There are test failures.
[ERROR] 
[ERROR] Please refer to /Users/kazuakiurayama/github/webdrivermanager/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
:~/github/webdrivermanager (master)
$ 

On the other hand, I did the same on Windows 10 PC with JDK17, Gradle 8.4, Maven 3.9.5, Firefox v119. I did NOT see the "Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver" message at all.

kazurayam commented 10 months ago

I did the same on Windows 10 PC with JDK17, Gradle 8.4, Maven 3.9.5, Firefox v119.

I did NOT see the "Error HTTP 404 executing https://raw.githubusercontent.com/bonigarcia/webdrivermanager/master/docs/mirror/geckodriver" message at all.

kazurayam commented 10 months ago

This is a question about the WebDriverManager. I have got an answer to it. See

https://github.com/bonigarcia/webdrivermanager/issues/1154