Upload file error: "AxiosError: Request failed with status code 403"

I am using Python 3.9.4 and Streamlit 1.30.0 to build a local app with a file uploader widget. I faced the error “AxiosError: Request failed with status code 403” and found some tips to change config.toml file for the server section.

Here is my code:

import streamlit as st
import pandas as pd


file = st.file_uploader('File bài báo', type=['xlsx'])
if file:
    df = pd.read_excel(file)
    df
else:
    'No file uploaded.'

But the error can not be solved when running the app locally, but there is no error likes this in cloud-app.

Hi @Phong_Le_Hoang

There’s a related thread on this topic here:

Hope this helps!

1 Like

Hi does anyone have a workaround, I’m using Streamlit version 1.36 the latest one and after a month of development, I’m getting this Axios error 403.

kindly help, thanks in advance

2 Likes

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