Check for errors using request.get()

Iโ€™ve got some apps deployed on share.streamlit.io. Iโ€™d love to be able to write a monitor, that will let me know when the apps crash. Is there a way to tell if an app is running using the http response?

For example, if I use the python:

response = requests.get('https://share.streamlit.io/jkanner/streamlit-pe-demo/main/pe-demo-app.py')

or similar, is there something in the response that can distinguish a running app from an error message? Any other hints would be welcome.

Thank you for your help!

-jonah

1 Like