The error msg is: The service has encountered an error while checking the health of the Streamlit app: Get “http://localhost:8501/healthz”: dial tcp IPAddress:8501: connect: connection refused
If the log is from yesterday, yes, I have copied a new one to replace it. Let me check, anyway.
I did find several threads about the connection refusal issue, but cannot find concise solutions.
Weirdly, the issue still seems to be coming from the config file. I forked your repo and deleted the contents of the config file, and that resolved the issue. It’s deployed here (I had to also add a missing package to the requirements file). I’m not sure exactly what was wrong with the config file, but it seems like it could be an invalid/invisible character potentially
Thank you so much for the help. May I ask: what is the missing package (could you please paste it to the reply so I can work out from my end)? and you remove all the content of config file?
The missing package was streamlit-aggrid. Yup, I just removed the contents of the config file – probably overkill, you could probably also just go through and make sure there aren’t any funky characters
Hi, thanks for your reply to this query. The error msg is: The service has encountered an error while checking the health of the Streamlit app: Get “http://localhost:8501/healthz”: dial tcp IPAddress:8501: connect: connection refused
The problem is becasue of the config.toml file that I copied from the tutorial. For unknown reason I’ve not figured out, it will cause connection refusal. I still have no time to check which part of the config.toml causes this problem. Thanks ~
Hi Caroline, sorry to bother you again. I meet a new issue of the same program.
The execution has no error message, however, the web-version fails to generate an excel file, but the local version has no problem with that. I leave the config.toml empty.
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.