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 the LocalNode did run. The LocalSessionMap still tells the session does exist, but the Node.isSessionOwner does return false. This will prevent the route inside the Node is matched and lead to the WebDriverException: 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