Skip to content
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

Can't establish a connection to the websocket server #2

Open
EddyLuten opened this issue Jan 31, 2024 · 7 comments
Open

Can't establish a connection to the websocket server #2

EddyLuten opened this issue Jan 31, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@EddyLuten
Copy link
Owner

I have the similar problem. The Edit button not responding.

image

image

image

Originally posted by @noeldum in #1 (comment)

@EddyLuten EddyLuten changed the title Can't edstablish a connection to the websocket server Can't establish a connection to the websocket server Jan 31, 2024
@EddyLuten EddyLuten added the bug Something isn't working label Jan 31, 2024
@EddyLuten
Copy link
Owner Author

I'm unable to reproduce this locally. I'll leave this open in case anyone can supply me with some more information on how to repro or fix this.

@noeldum
Copy link

noeldum commented Jan 31, 2024

Using Ubuntu 22.04.3 LTS

@EddyLuten
Copy link
Owner Author

Hmm, I'm on Ubuntu 23.10 using Firefox 122.0. I was on 22.04.3 LTS until a few days ago and also didn't have any of these issues.

I don't have netstat, but when I run ss -ap | grep 8484 | sed 's/[[:space:]]*$//' I get this output:

image

Everything seems to be working as expected; there are no browser console errors, etc. Could you try overriding the websocket port and see if you still see the same error? You can do so by modifying your mkdocs.yml like so:

image

Where 8833 is any port you want that your process is allowed to open.

@noeldum
Copy link

noeldum commented Jan 31, 2024

same thing again. No change.

image

@EddyLuten
Copy link
Owner Author

Interesting. I don't see FF as a consumer of that connection in your screenshot at all. Can you verify that you don't see any issues when running a test here?

Also, do you happen to have another browser installed to see if it works there?

@noeldum
Copy link

noeldum commented Jan 31, 2024

all ticked green on websocketstests. Both using firefox and chromium. Both browsers behave the same.

@EddyLuten
Copy link
Owner Author

What might be happening is that the WebSocket tries to connect before it completes initializing on the server. I'm making a few improvements in 0.1.4 to connect after DOM loading is complete and a retry mechanism if the connection fails. I also won't show the controls until I get a signal from the server that the WebSocket connection is open and ready to accept connections.

Let me know if the issue persists in this new version, and I'll keep digging around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants