HTTP Error 404 Not Found

I can run my apps on localhost but I got a problem when deploying app on Streamlit.
I get a message “urllib.error.HTTPError: HTTP Error 404: Not Found”

Fyi… I am using Python 3.10 + Mac OS

My repo on GitHub GitHub - widiantoko/gresik

My app on streamlit https://gresik-cwxfkqlxvcjjnvk4tj9ga9.streamlit.app/

Thanks for your help…

Widiantoko…

Hey @widiantoko,

Can you share the full text of the error message (from the console on the right side of the app)?

Hey @Caroline
Like this…?

Yes, but please copy and paste the text in the future rather than posting a screenshot.

It looks like the error is coming from line 81, where you’re passing the URL “https://github.com/widiantoko/storage/blob/gresik/xwh_romo.xlsx” to read_excel.

It seems like the storage repo might be private, because when I enter that URL in my browser, I get a 404 page (see screenshot below).

Probably this is the right link:

https://github.com/widiantoko/gresik/raw/main/xwh_romo.xlsx

However this should be even easier, since the file is in the same repo:

romox=pd.read_excel("xwh_romo.xlsx")
1 Like

@Caroline thank for your help.
I have delete repo on Github “Storage/xwh_romo.xlsx.” and change with “Gresik/xwh_romo.xlsx”

But I dont change my coding. :sob::sob:

@Franky1 thanks for your advice

Did changing the URL in the app to “https://github.com/widiantoko/gresik/raw/main/xwh_romo.xlsx” resolve the issue for you?

@Caroline
I am not with my :computer: right now. I will check my code.

But I am sure repo “storage/xwh_romo.xlsx” is deleted

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.