I am getting the following error while run the streamlit app
ConnectionError: HTTPConnectionPool(host=‘127.0.0.1’, port=5000): Max retries exceeded with url: / (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f492268db20>: Failed to establish a new connection: [Errno 111] Connection refused’))
The flask server code :
streamlit app code:
1 Like
I have closed all other jupyter tabs or instances running the app,yet I get the same error. It would be very useful if you can send help,thanks!
okay guys the issue is resolved,i just realised i was not running the server at first place,my bad.
2 Likes
Welcome to the community @Vishal_Karthik
Glad you found out
we all do this kind of error!
1 Like
@andfanilo Sorry to reopen this, but I thought you might be able to help. I would like to hide such connection errors in a production environment. Right now, this error exposes my API URL which I would like to keep it hidden. Is there a configuration flag in Streamlit that can take care of this? Thanks in advance for your support!
1 Like