-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[🐛 Bug]: org.openqa.selenium.WebDriverException: Unable to route (POST) /session/0405a24bf1d06c6ae8402b8d12027934/... #13769
Comments
@joerg1985, 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! |
How do you think Grid should behave in this case? Should the exception be more clear? |
@diemol At this time the exception is raised the session is allready timed out. |
Do you know where this exception was shown? I can tweak the response we send to the user. |
It is raised here: selenium/java/src/org/openqa/selenium/grid/web/RoutableHttpClientFactory.java Lines 60 to 68 in 2b59996
Here the session map still returns the session, but the following ownership check fails: selenium/java/src/org/openqa/selenium/grid/node/Node.java Lines 149 to 151 in 2b59996
|
This issue is looking for contributors. Please comment below or reach out to us through our IRC/Slack/Matrix channels if you are interested. |
@joerg1985, do you have a test on which command can return that error when session just timed out? |
@VietND96 i could reproduce the issue with the code below. One solution might be to extend the
|
Adding NodeId to |
You are right, the Node is currently not aware of the other Grid components. @diemol is it a long term goal to remove Guava from the server, like from the client? |
I believe we did not think about the server, but I would not be opposed to that. What would be the alternative? |
After walkthrough implementation, I see the event |
@diemol One option would be to allow the node to answer with a "NoSuchSessionException" as proposed by @VietND96 as soon as a sessionId is set and the session is unkown or not owned by the node. Currently the node does answer with To implement this i would move the |
I tried to update it as you suggested, move it to |
This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs. |
What happened?
When executing a command on a just timedout session a
WebDriverException: Unable to route ...
is raised.How can we reproduce the issue?
For some seconds after the session timedout there is a inconsistent state, until the
sessionCleanupNodeService
of theLocalNode
did run. TheLocalSessionMap
still tells the session does exist, but theNode.isSessionOwner
does return false. This will prevent the route inside theNode
is matched and lead to theWebDriverException: Unable to route ...
.Relevant log output
Operating System
Win 10 x64
Selenium version
4.17.1
What are the browser(s) and version(s) where you see this issue?
N/A
What are the browser driver(s) and version(s) where you see this issue?
N/A
Are you using Selenium Grid?
N/A
The text was updated successfully, but these errors were encountered: