Fixed streamlit_app.py local debug issue #254
crazyyiwen
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Hi @crazyyiwen , thanks for your kind words. I'm not extending direct write access to the main repo to new developers at this time. However you are welcome to submit a pull request with the proposed changes, as other contributors have been doing. Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Joshua,
First please allow me to thank you for sharing such a nice open source project.
I host locally and can debug.
Just fixed a small issue for streamlit_app.py localhost:
In streamlit_app.py, I directly change the below code:
agent_url = "http://localhost:8080"#f"http://{host}:{port}" or developer can setup in .env
0.0.0.0 means “listen on all interfaces” when binding a server — it’s not a valid address for making a client request,
When the streamlit_app.py is running inside a Docker container, http://0.0.0.0:8080 works for binding the agent_service server, but if the client code tries to connect to 0.0.0.0, it fails — Windows sees 0.0.0.0 as “no valid route”.If developer run streamlit_app.py in debug mode on host machine while the agent_service is in a container, 0.0.0.0 from the container doesn’t make sense from the host — developer need the container’s exposed hostname or localhost.
Is it possible to share access so that I can commit the code fix and also for future code contribution access. Thanks
Beta Was this translation helpful? Give feedback.
All reactions