Help! AxiosError: Request failed with status code 502

I keep getting this 502 error when I upload a file onto my app. Uploading the file is the first and only interaction I make with the website, before the file “finishes” uploading and immediately throws this error, and then the whole site crashes for several minutes. I’ve tried updating streamlit, deleting the app completely and redeploying it, changing the python version, increasing maxUploadSize to 5000… nothing is working. The app works fine locally, just not live.

Can anyone help? I’ve read just about every post regarding this issue, but nothing has fixed the problem.

Did you manage to solve this issue? I’m having the same deploying on azure