I have a Streamlit app (https://quakes.streamlit.app/) that I had deployed successfully. I later moved it to a GitHub organization so I could organize things. A couple of days after doing so I noticed that I was getting an error message from slack saying it failed to pull the data and deploy. I needed to fix the keys. So I did so and the data pull has since resumed
Honestly, I couldn’t tell what file this referred to because the message was so vague. My presumption was it was the Streamlit app and that’s what it turned out to be.
HERE’S WHERE IT GETS WEIRD Line 8 is the import for streamlit.
I then tried to deploy it locally and got the same error (I’ll save you another photo). Since I wasn’t totally sure it was the app, I tried what I knew wouldn’t work, putting a st.write("this is the problem file") before the import.
The browser tab to the local file showed it had been changed. It wouldn’t display, of course, as the message is before the import but it does show where the problem is.
With that in mind, I updated the conda environment with Streamlit. Additionally, I’ve restarted the app several times.
Still no luck.
I’m at a loss here and could use some help. I don’t see this topic on the discussion boards so it appears new.
You are catching the exception and raising it again without the context here:
The full error suggests that the requested JSON is not well formatted.
Looking a bit closer, the request to github_repo_url is not going to return a json back, hence the decoding error, is just some html. Perhaps that link was supposed to point somewhere else?
Hmmm. If that’s the error I’m not sure why this would go from working to suddenly not working. I’m also don’t see why that would cause it to show the error at line 8.
Let me think (and work on) that a bit and get back to you.
Oh, I see. Thank you for that. That was enough for me to get over the hump.
Is there a way for the error messages to include the file name? Because, while I appreciate your helping me you helping me, I think adding that would save you time or let you address more interesting questions.