Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Failing webdriver session should be handled, not silently ignored. #211

Open
Pierre-Felber opened this issue Jul 29, 2020 · 1 comment
Open

Comments

@Pierre-Felber
Copy link

Pierre-Felber commented Jul 29, 2020

Hi,

I was having issues when calling Page.Navigate() and got the error failed to navigate: failed request: invalid session id.
After some digging in the code I got to the point where the session got initiated.

Here the response from the chromedriver:

HTTP/1.1 200 OK
Content-Length:503
Content-Type:application/json; charset=utf-8

{"sessionId":"51576e1fde8127c51faf316a072d9123","status":13,"value":{"message":"unknown error: Chrome failed to start: exited abnormally.\n  (unknown error: DevToolsActivePort file doesn't exist)\n  (The process started from chrome location /usr/lib64/chromium/chromium is no longer running, so ChromeDriver is assuming that Chrome has crashed.)\n  (Driver info: chromedriver=84.0.4147.89 (19abfe7bcba9318a0b2a6bc6634a67fc834aa592-refs/branch-heads/4147@{#852}),platform=Linux 5.7.9-1-default x86_64)"}}

As we can see, obviously the session is in some bad state and it would be nice to fail right here with the message from the chromedriver.

Instead failing at Page.Navigate(), fail me at Driver.NewPage() and the received message. The status 13 must mean something in the protocol, i guess.

Ciao Pierre

@kesavabjs2
Copy link

We are also facing the same issue. :(

alext added a commit to alext/heating-controller that referenced this issue May 7, 2022
This needs an X server running so that Chrome can be started
successfully. Without this, it fails to start, and agouti reports a
cryptic "invalid session id" error message.

Details discovered via issue here: sclevine/agouti#211
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants