server down issue
ahmed-khan98
HOBBYOP

a month ago

Hello Team,
My project status on the Railway dashboard shows Active, and the service is deployed successfully. However, when I hit the API endpoints, I am not receiving any response.
Could you please clarify why this is happening and if there is any issue from the Railway side (sleep mode, networking, or configuration)?

Looking forward to your support. Thank you.

Solved

1 Replies

Your deployment completed without failures, but we found no runtime logs, which strongly indicates your application isn't binding to the correct port. Railway injects a PORT environment variable that your app must use - make sure your application listens on process.env.PORT (or the equivalent in your language) and binds to 0.0.0.0 rather than localhost or 127.0.0.1. For example, in Node/Express this would be app.listen(process.env.PORT, "0.0.0.0"), or for Python with Uvicorn: uvicorn main:app --host 0.0.0.0 --port $PORT. You can verify your configuration in your service settings and check that any custom target port in your domain settings matches what your app actually listens on. More details are in our networking guide.


Status changed to Awaiting User Response Railway about 1 month ago


Railway
BOT

a month ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 29 days ago


Loading...