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

Session not created: This version of ChromeDriver only supports Chrome version 114 #1282

Closed
Smoke6969 opened this issue Apr 22, 2024 · 6 comments
Labels

Comments

@Smoke6969
Copy link

Getting this error for chrome 124.

SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 114

<!-- https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager -->
<dependency>
    <groupId>io.github.bonigarcia</groupId>
    <artifactId>webdrivermanager</artifactId>
    <version>5.8.0</version>
</dependency>
@Mfaisalansari
Copy link

Mfaisalansari commented Apr 22, 2024

Getting Same issue with all the versions. Please help

@rromanik
Copy link

Getting this same issue with Chrome 124. Chrome 123 works ok.

@bonigarcia
Copy link
Owner

To my knowledge, WebDriverManager 5.8.0 works correctly with both Chrome 123 and 124.

So, to understand this issue, as asked in the issue template, it is necessary to report the WebDriverManager traces. I mean the following:

2024-04-25 13:32:25 [main] DEBUG i.g.bonigarcia.wdm.WebDriverManager.<init>(227) - Using WebDriverManager 5.8.0
2024-04-25 13:32:25 [main] DEBUG i.g.b.wdm.cache.ResolutionCache.<init>(77) - Created new resolution cache file at C:\Users\boni\.cache\selenium\resolution.properties
2024-04-25 13:32:25 [main] DEBUG i.g.b.wdm.versions.VersionDetector.getBrowserVersionFromTheShell(237) - Detecting chrome version using online commands.properties
2024-04-25 13:32:25 [main] DEBUG i.g.bonigarcia.wdm.versions.Shell.runAndWaitArray(65) - Running command on the shell: [cmd.exe, /C, wmic, datafile, where, name="%PROGRAMFILES:\=\\%\\Google\\Chrome\\Application\\chrome.exe", get, Version, /value]
2024-04-25 13:32:25 [main] DEBUG i.g.bonigarcia.wdm.versions.Shell.runAndWaitArray(69) - Result: Version=124.0.6367.78
2024-04-25 13:32:26 [main] INFO  i.g.bonigarcia.wdm.WebDriverManager.resolveDriverVersion(1220) - Using chromedriver 124.0.6367.78 (resolved driver for Chrome 124)
2024-04-25 13:32:26 [main] DEBUG i.g.b.wdm.cache.ResolutionCache.putValueInResolutionCacheIfEmpty(119) - Storing resolution chrome=124 in cache (valid until 14:32:26 25/04/2024 CEST)
2024-04-25 13:32:26 [main] DEBUG i.g.b.wdm.cache.ResolutionCache.putValueInResolutionCacheIfEmpty(119) - Storing resolution chrome124=124.0.6367.78 in cache (valid until 13:32:26 26/04/2024 CEST)
2024-04-25 13:32:26 [main] DEBUG i.g.bonigarcia.wdm.WebDriverManager.manage(1179) - Driver chromedriver 124.0.6367.78 found in cache
2024-04-25 13:32:26 [main] INFO  i.g.bonigarcia.wdm.WebDriverManager.exportDriver(1282) - Exporting webdriver.chrome.driver as C:\Users\boni\.cache\selenium\chromedriver\win64\124.0.6367.78\chromedriver.exe

For further info about logging, see doc.

@rromanik
Copy link

@bonigarcia it's working now.
I believe the root cause for the error was the following.
A week ago when Chrome was updated to v124, there were no chromedriver of version 124 at https://googlechromelabs.github.io/chrome-for-testing/.
I remember, a few days ago the latest version available there was 123, and some section was even red (I don't remember clearly which exactly).

Now as the latest chromedirver version available at https://googlechromelabs.github.io/chrome-for-testing/ is 124.xxxx, everything works.

@brunoaduarte
Copy link

brunoaduarte commented May 2, 2024

Getting this error for chrome 124.

SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 114

<!-- https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager -->
<dependency>
    <groupId>io.github.bonigarcia</groupId>
    <artifactId>webdrivermanager</artifactId>
    <version>5.8.0</version>
</dependency>

I was getting the same error here today. What fixed the issue for me was to remove the old cached Chrome Driver 114 version at:

%USERPROFILE%\.cache\selenium\chromedriver\win64

Seems webdrivermanager will always use whatever version is on that folder, without checking if there are new ones in case of an incompatible Chrome version.

brunoaduarte added a commit to brunoaduarte/WhatsappWebRequestAnalyzer that referenced this issue May 2, 2024
- Update libraries to latest versions
- Compatible with latest Chrome 124
- Fix code to get decryption keys on latest WA Web 2.3000.xxxxxxxxxx

If you get the error "SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 114" or something similar, try erasing the selenium webdriver cache located at %USERPROFILE%\.cache\selenium\chromedriver.
bonigarcia/webdrivermanager#1282 (comment)
@maheshp2023
Copy link

Getting this error for chrome 125

org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 123
Current browser version is 125.0.6422.77 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:01:39.354Z'
System info: host: '20X8-PF3J99N5', ip: '10.202.224.76', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_172'
remote stacktrace: GetHandleVerifier [0x00007FF76DF070C2+63090]
(No symbol) [0x00007FF76DE72D12]
(No symbol) [0x00007FF76DD0EC65]
(No symbol) [0x00007FF76DD454C2]
(No symbol) [0x00007FF76DD448CF]
(No symbol) [0x00007FF76DD3E8C5]
(No symbol) [0x00007FF76DD3B2F4]
(No symbol) [0x00007FF76DD80BFB]
(No symbol) [0x00007FF76DD80830]
(No symbol) [0x00007FF76DD76D83]
(No symbol) [0x00007FF76DD483A8]
(No symbol) [0x00007FF76DD49441]
GetHandleVerifier [0x00007FF76E30262D+4238301]
GetHandleVerifier [0x00007FF76E33F78D+4488509]
GetHandleVerifier [0x00007FF76E337A6F+4456479]
GetHandleVerifier [0x00007FF76DFE0606+953270]
(No symbol) [0x00007FF76DE7E5DF]
(No symbol) [0x00007FF76DE792B4]
(No symbol) [0x00007FF76DE793EB]
(No symbol) [0x00007FF76DE69C24]
BaseThreadInitThunk [0x00007FF803E27344+20]
RtlUserThreadStart [0x00007FF804B026B1+33]

Driver info: driver.version: ChromeDriver I tried 5.6.3,5.6.4,5.7,5.8
I made sure clearing cache etc

io.github.bonigarcia webdrivermanager 5.8.0

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

No branches or pull requests

6 participants