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!