AxiosError: Request failed with status code 400 while uploading a multiframe tiff file

My Streamlit app throws " AxiosError: Request failed with status code 400" error when I upload a large multiframe tiff file (in this case it’s 900MB and maxUploadSize is set to 2GB per file). It works well when the upload size is at 200MB (default) for files less than 200 MB. Please help.

Hi @toto_26

To help the community in helping to provide potential solutions, could you share the code to the app that reproduces this error. Also, is this a local app or deployed to the cloud?

The code I’m using is:

st.title('**_Upload a stack_**')
if st.session_state.raw_file is not None:
    st.warning('Reload and upload a new file')        
else:
    st.session_state.raw_file = st.file_uploader("*_Choose a stack_*")

I am using the app locally. This happens when the file is too large and the pixel values are 16-bit unsigned integers. Is it some kind of memory issue? I have an 8GB RAM.

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