-
-
Notifications
You must be signed in to change notification settings - Fork 627
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
Firefox cannot establish the websocket connection but other browsers and firefox private browsing can. #2954
Comments
the working browser shown above is Edge |
I suspect it has something to do with the browser cache. |
Can anyone else reproduce this issue? |
it may require making small changes to the code (add / remove the button) between restarts to trigger the firefox failure |
Firefox works for me and my project. Probably one of the extensions interferes since the problem doesn't exist in private mode?.. 🤔 |
I was not able to repeat the issue after re-installing the Adblock Ultimate Extension. I think I was running a multi-year old version of the extension. |
nevermind the issue is back. Issue persists after:
|
restarting firefox in "troubleshooting mode" also seems to fix the issue (from the hamburger menu -> help -> troubleshooting mode |
This is only for reference as I was experiencing when using self-signed certificate in my JAVA (openjdk version "21.0.2" 2024-01-16 LTS) project running apache-tomcat (apache-tomcat-11.0.0-M20).
Eventually, I simply added the port of WSS to the Mozilla Firefox and problem was resolved. Below are steps of what I did:
So for my case, I used https://localhost:8444 as an example for my WSS port and now my Mozilla Firefox can establish the WSS connection. I hope this reference may help you or anyone who maybe experiencing similar issue with the Mozilla Firefox. |
Description
It looks like firefox cannot connect to the websocket while other browsers can.
I believe this issue has been present for a few months.
This issue seems to only present itself when starting the app multiple times (while developing). I have not been able to reproduce the issue when the app is run inside a docker container and the entire docker container is restarted / rebuilt between code changes.
The issue is also present when restarting the app multiple times inside a docker container without restarting the entire container (when using vscode devcontainers), indicating the issue is present on windows and linux(WSL).
Here is how I can produce the issue:
python main.py
nicegui version: 1.4.18
windows 11
python 3.11.19
main.py:
Sometimes, Firefox reports error in the web developer tools:
and the page refreshes periodically while showing sometimes:
Firefox can connect again when in private browsing:
The text was updated successfully, but these errors were encountered: