When accessing my Streamlit app, via a Satellite Internet connection, I get “Please wait” then, after a while, a popup saying “Connection Error” - “Connection times out”. I do NOT have any issues connecting to and using this application via other forms internet access. And my co-workers can access it without issue.
This sort of sounds like what this issue is describing:
Not sure if there are any other specifics that @karriebear might need, but she might be able to work with you to solve your solution and inform the larger solution.
Hi @dplutchok! I remember seeing a similar issue that was related to websocket compression. In my case I had a reverse proxy that was stripping out some headers on the requests to and responses from the Streamlit app, and it broke the websocket compression feature. I would see the browser repeatedly trying to connect to the Streamlit server using the developer tools in my browser, and eventually timing out.
To check if you are running into the same issue, you can try setting the server.enableWebsocketCompression config flag to false in your Streamlit app’s config file, or set the STREAMLIT_SERVER_ENABLE_WEBSOCKET_COMPRESSION environment to "false". See docs for more info on config options.
I already tried the solutions in the documentation including adding --server.enableCORS=false to my usual streamlit run command and also --server.enableCORS=false but neither of these made any difference. Should I try something else?
Note that I continue to have this issues when utilizing my home satellite network and can now confirm that I get this same error when using my cell phone as a hotspot. The issue appears to be correlated with high-latency networks (e.g. >500 ms latency). This is NOT specific to my streamlit app as I actually experience this exact same issue for all streamlit apps available on the web when I am using a high-latency network. Please let me know if there might be some sort of server setting that can overcome this issue. Thanks.
Hi @dplutchok – thanks for following up on this one.
At present there isn’t a configuration you can set to adjust tolerance for latency. I’ll be looking into this one towards the end of this week (i.e. tomorrow), because we’re looking at upgrading our Tornado dependency pretty soon, which might afford us the ability to create a setting that would help in your situation.
Thanks for filing the GitHub issue, too! Linked here:
Wow, that’s a heck of a work-around. I will have to try that out when I’m back in my location that uses Hughes satellite. Thanks! Not sure how the heck you figured that one out.
FYI, I did not implement this or resolve my issue, however, since moving from Huges to Starlink this has become a non-issue. Starlink latency is extremely low.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.