Before clicking “Create Topic”, please make sure your post includes the following information (otherwise, the post will be locked).
Are you running your app locally or is it deployed? Currently, locally
If your app is deployed:
a. Is it deployed on Community Cloud or another hosting platform? Community Cloud
b. Share the link to the public deployed app. Not currently deployed publicly since it is a University coursework, can give access if needed
Share the link to your app’s public GitHub repository (including a requirements file). Again, private as it is a University submission, can give access if requested.
Can send over the requirements.txt
Share the full text of the error message (not a screenshot). AxiosError: Request failed with status code 403
Share the Streamlit and Python versions. Streamlit 1.28.2
Python version 3.11.3
Update on the matter, st,file_uploader() works fine now. The issue was that I was running it in the Simple Browser feature on VS Code
Instead of the normal web browser.
So it is working as intended.
To answer your questions earlier, I am using Streamlit 1.28.2 as mentioned in the above post.
I was trying to upload a JSON data set file, and I am trying to find a way to read the lines and store it in a list.
If there is a way I can use it with the JSON Python library, please do let me know, or kindly direct me to a similar post on the same.
I have an app using streamlit and st.file_uploader that is hosted on Azure web services. The uploader keeps on failing every then and now giving the following error:
AxiosError: Request failed with status code 400
Any idea how to solve the problem?
Here is the associated code:
file_1 = st.sidebar.file_uploader(
label=‘:violet[Select PDF, word, or text files to upload]’,
type=[‘pdf’, ‘docx’, ‘txt’],
accept_multiple_files=False, key=‘file_1’,
label_visibility=‘hidden’)
if file_1:
st.session_state.file_to_upload_1 = convert_file_to_text(file_1)
st.file_uploader(type=[“zip, pdf”]) returns “AxiosError: Request failed with status code 403” when streamlit app is deployed on Heroku.
The error appears starting with streamlit version==1.30.0.
The app works fine on heroku with streamlit==1.29.0
Love the new function, 1.31(write_stream) and 1.32(popover), but due to file_uploader in ongoing project, i have to downgrade to 1.29, has anyone have any workarround with this problem?
I am also facing this issue in a deployment in Azure Web App, but only when my users are behind a VPN. It would be nice to obtain an official explanation on how to solve this issue, and if it requires disabiling CORS, what that means for the final security of the app
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.