File upload fails with AxiosError: Request failed with status code 403

:rotating_light: Before clicking “Create Topic”, please make sure your post includes the following information (otherwise, the post will be locked). :rotating_light:

  1. Are you running your app locally or is it deployed? Currently, locally
  2. Share the link to the public deployed app. - not deployed
  3. Share the full text of the error message (not a screenshot). AxiosError: Request failed with status code 403
  4. Share the Streamlit and Python versions. python 3.10 streamlit 1.30.0

Hi @Aishwarya_Pramod

Could you see this relevant forum post on this error that you’re encountering:

Hi Aishwarya, I am encountering the same error. If you got the solution please share it. That would really help me.

I have been encountering a similar issue for 9 days now. My app is working well on streamlit cloud but refuses to load data if I try to test it locally before deploying

Hello there,

I was strugging with the same issue from last week.

I downgrade from 1.30.0 to 1.29.0 and today I upgrade to 1.31.0 the problem sloved.

Also I updated the line in my config.toml file:

I added:


I am using Mac with

Streamlit version: 1.31.0
Python: 3.9.0

Hope this help.

Thanks and regards,
majid Liaquat

1 Like

Not working for mac local running in 1.32.0 and python 3.9.12