-
-
Notifications
You must be signed in to change notification settings - Fork 604
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
https://nicegui.io/ Automatically refresh without reason (with Safari) #1211
Comments
Thanks for reporting this. We have seen this before and are investigating possible solutions. We will update any progress here! |
Quite tricky! After long investigations and multiple ping-pong with the fly.io support I can summarize:
To fix this we need to route the socket.io connection back to the original instance which served the page. fly.io provides a I spend quite some time to evaluate Google Cloud Run as an alternative to fly.io because they have cookie-based session affinity. But I have not been able to reduce the initial resposnse time below 1.5 seconds yet. |
Hope you will find a solution for this as it must be such an unnecessary negative first impression for new users. Also will it improve the user experience on mobile? |
@pythonormen is it still happening for you? We have released a fix a few days ago and could not reproduce the error anymore. |
Hello, for page https://nicegui.io/documentation/tree#expand_programmatically still auto refresh again and again. |
I think I found a solution in the minimal example https://github.com/zauberzeug/fly_fastapi_socketio. It seems that it is indeed possible to inject headers into the response of an websocket upgrade request. Feels hacky but works. |
@Xtreemrus we just released a hotfix with PR #1300 to the public website. It looks good on my side. Can you please test and verify that the bug is really fixed? |
Fixed :) |
Thanks for going all the way @Xtreemrus. I'm happy you persisted in this. The new solution is much cleaner and better. It was quite an effort. But worthy. |
Description
When I visit the website to view documents for learning, the page automatically refreshes without any reason, resulting in a poor experience. I hope the author can investigate this phenomenon. Thank you
The text was updated successfully, but these errors were encountered: