-
Notifications
You must be signed in to change notification settings - Fork 40
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
websocket._exceptions.WebSocketConnectionClosedException: socket is already closed. #19
Comments
I have the very same problem here. The exception originates here:
Somehow (for reasons), the websocket at that point is closed. It turns out that the line of code that does something (not sure what or why) is here:
Commenting out that line solves the issue. However, I do not know if this little change will break the time-space continuum. (Update) |
I had the same issue, whats happening is that when you create a new instance without specifying a timeout So the timeout in wait_event essentially means wait for the passed in event to show up in incoming messages until we hit the timeout, if no data is coming in the socket will timeout within a second, unless specified when you initialize ChromeInterface. |
Guys I cannot reproduce the error. It is working fine on my Ubuntu and MacOS PCs. Do you have any special configuration of Chrome? |
I have the same issue on only 1 server among ~20 the code runs at. Tried to specify timeout on ChromeInterface - didn't work. So this seems to be specific to server configuration. It is failing on linode instance, but works perfectly on digitalocean and vultr and on my local dev machines. All instances has equal CPU and RAM. The traceback is as follows:
|
I have tried the Below is the code I am trying to run:
And this is what I get when I try running it:
|
@marty90 can you try and update so that I restricted the version to |
Hi guys. I can confirm that installing |
Hi, I open the chrome browser and try to do anything after connecting to the dev tools, but anything I try results in 'socket is already closed'...
Any suggestions?? (I have tried all of those lines and all of them end up throwing the socket closed error.. chrome = PyChromeDevTools.ChromeInterface() - seems to be working fine.
The text was updated successfully, but these errors were encountered: