hi. I wrote a small application on streamlit. Everything works locally on my machine. When I fill in my code and run it and go to the web interface streamlit connects to the server and crashes with an error:
“Connection error Connection failed with status 0.”
has anyone encountered such a problem?
Hey @Ilya_Sergeev,
Can you share a link to your deployed app and GitHub repo so we can try to reproduce this issue?
I have the same problem, but for me it intermittently happens when I leave the app open and inactive for long time (over night for example). I get this same error and the app stops working (need to refresh)… not a major,but annoying user experience.
My app is deployed in Azure as AppService.
We had the same problem with an internal deployment and cleaning the browser data (Edge browser: history-> clear browsing data), we fixed the problem.
“Connection error. Connection failed with status 0” with our Streamlit app running on a iPhone. We get this error message about 10 seconds after putting the device into Airplane mode. When the device is subsequently taken out of airplane mode the error message is automatically dismissed. Streamlit 1.37.1 running on Github Codespaces and same behaviour at Render.
I have the same problem as brunobraga. Longer period tab opened in browser leads to that error message. I attached the logs from the browser. However I dont know if this is the root cause but seems to me that the websocket hangs up or sth like that?
main.dbbac55a.js:19 WebSocket connection to 'wss://ai.ourdomainplaceholder.de/_stcore/stream' failed:
connectToWebSocket @ main.dbbac55a.js:19
main.dbbac55a.js:10 WebsocketConnection WebSocket onerror
a @ main.dbbac55a.js:10
/favicon.png:1
Failed to load resource: net::ERR_NAME_NOT_RESOLVED
/_stcore/host-config:1
Failed to load resource: net::ERR_NAME_NOT_RESOLVED
/_stcore/health:1
Failed to load resource: net::ERR_NAME_NOT_RESOLVED
/_stcore/health:1
Failed to load resource: net::ERR_NAME_NOT_RESOLVED
/_stcore/host-config:1
Did anyone find a way to tweak the pop-up itself? Like changing the error message from “Connection failed with Status 0” to a custom message for our end users (e.g., “An error occured, please refresh the page”). Not ideal but probably the fix that will need the least update effort.
Thanks