-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[🐛 Bug]: ConnectionFailedException: JdkWebSocket initial request execution error #2850
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
Comments
@IlyaUk, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Can you also share a client script to reproduce? |
Hi @VietND96 |
I will also suggest you to upgrade your test framework as well. It's a good practice to keep test framework updated to avoid any CDP compatibility issues. |
Hi @VietND96, Chrome node: The issue doesn't reproduce with Selenium 4.25. Started from 4.26 it is present. |
I see this message, via Node container env var
https://www.selenium.dev/documentation/grid/configuration/cli_options/#node |
@VietND96, thanks a lot for the idea. It helped a bit: |
Are you sharing the same session for multiple tests (e.g initialize session at 1st test and close session at 25th test, or open multiple tabs, or something else)? This would help to identify why lots of websockets are opened, since a huge number of ws are also causing Node to consume many resources or memory leaks. |
What happened?
An attempt to upgrade Selenium hub and Chrome nodes from version 4.25.0-20240922 to the latest ones shows that there is an error related to CDP - ConnectionFailedException: JdkWebSocket initial request execution error.
The issue is reproducible starting from 4.26.0-20241101 till the latest versions: 4.33.0-20250525.
The only one workaround to avoid the issue - set Selenium flag --enable-cdp false for Chrome nodes and disable all tests that use CDP features.
Command used to start Selenium Grid with Docker (or Kubernetes)
Relevant log output
Operating System
Windows 11, Ubuntu 22.04.5 LTS, MacOS 15.5
Docker Selenium version (image tag)
4.32.0-20250505
Selenium Grid chart version (chart version)
The text was updated successfully, but these errors were encountered: