Fast API: Application Error: This application failed to respond
I'm trying to deploy my FastAPI app using templete but when i got Application Error: This application failed to respond
8 Replies
Project ID:
833e8b2a-b457-4951-8eab-88a03408c2fc
833e8b2a-b457-4951-8eab-88a03408c2fc
Every thing works perfectly locally but when i try to deploy it, it crashes
Are you listening on the right port?
Take a look at this: https://docs.railway.app/troubleshoot/fixing-common-errors
yes i guess becaue it already implemented in the railway.json:
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"startCommand": "hypercorn main:app --bind "[::]:$PORT""
}
}
at first when i installed and deployed the templeate it worked fine, but when i write my actual code and tryed again to push the code geting crashed
the deploy log says that the code is working because it print
review your code and look for anything you did that could break the code