502 Bad Gateway
nadz-legrange
FREEOP

9 months ago

Application failed to respond

Request ID:
mRLKtD2_TtWJ4Nq-m3z_FQ

$10 Bounty

4 Replies

Railway
BOT

9 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


muhammed1447
FREE

9 months ago

Make Sure Your App Binds to process.env.PORT

Railway expects your server to listen on the port it gives you via environment variable PORT.

Node.js Example:

const PORT = process.env.PORT || 3000;

app.listen(PORT, () => {

console.log(`Server running on port ${PORT}`);

});

Django Example:

Use this in Railway environment variables:

PORT=8000

Then run:

python manage.py runserver 0.0.0.0:$PORT

Or set start command to:

gunicorn your_project.wsgi:application --bind 0.0.0.0:$PORT

127.0.0.1 or default localhost will not

work — must use 0.0.0.0.


muhammed1447
FREE

9 months ago

& redeploy


clashing
FREE

9 months ago

Please provide more context for your issue. What type of services are deployed, and what exactly is the issue


Welcome!

Sign in to your Railway account to join the conversation.

Loading...