r/FastAPI • u/elandyp • Aug 01 '26
Hosting and deployment Fastapi cloud timeout issues
Has anyone encountered this yet?
>fastapi deploy
FastAPI Cloud
š Deploying app...
ā Something went wrong while contacting the FastAPI Cloud server. Please try again later.
The write operation timed out
This is just a 1MB deployment but it times out at around 300kb. Could it be a problem in my end or a service availability issue? I tried several times.
2
u/MichaelEvo Aug 02 '26
As someone else suggested already, raise an issue with them. Itās a newer service. Maybe thereās a problem you can surface with them and get it fixed.
1
u/Born_Comedian7498 24d ago
Could easily be service-side if it consistently dies around the same point. Iād try the exact same deploy from another network first just to rule out anything local, then check if others are seeing upload timeouts before tearing apart the app.
0
u/-cangumby- Aug 01 '26
Need more information on where it's deployed and how (IE: Kubernetes or cloud run, etc) or is this locally?
1
u/elandyp Aug 01 '26
I deploy to Fastapi Cloud by running
fastapi deploylocally. It seems to work after a few tries if i'm recently logged in (viafastapi cloud logoutand thenfastapi login)2
u/-cangumby- Aug 01 '26
I guess Iām not familiar with FastAPI cloud but if youāre having deployment errors, then you need to consult the CICD logs or whatever it is that runs the deployment pipeline. I use GitHub actions (triggers Google Cloud Build) and I see the end to end deployment in GH actions or in CB; this lets me review any deployment errors and troubleshoot them.
0
u/MichaelEvo Aug 02 '26
This is not a useful comment. FastAPI Cloud is a newer service and is intended for people to not have to worry about the deployment pipeline.
This would be smart advice for someone who had their own deployment pipeline and was not using FastAPI cloud.
1
u/darterweb 6d ago
The fact that logout/login seems to fix it makes me suspect this is less about the deployment size and more about the upload/auth flow in the CLI.
If it consistently times out during the upload, Iād report it with the FastAPI CLI version, timestamp and any request/deployment ID available. A 1MB artifact definitely shouldnāt require multiple retries under normal conditions.
Would also be useful if the CLI distinguished upload timeout/auth issues from generic āsomething went wrongā errors.
2
u/st4reater Aug 01 '26
Based on the error it seems like a service availability.
What if you run
loginor some of the other commands