502 Bad Gateway Error
drewshka
FREEOP

5 months ago

Hi There,

I'm getting a 502 Bad Gateway Error when I'm trying to deploy my fullstack application with this URL: chooseyourownadventure-production-afc6.up.railway.app

Can you please assist?

It says the deployment was successful but the link won't work.

Best,

Andrew

$10 Bounty

2 Replies

Railway dynamically assigns a port to your deployment as the PORT environment variable. If you are hardcoding the port ( 3000 or 8080) in your production code, it could result in this error.

Make sure you are using the provided PORT from environment variables.


Anonymous
HOBBY

5 months ago

logs?


Welcome!

Sign in to your Railway account to join the conversation.

Loading...