502 Bad Gateway Error
drewshka
FREEOP
a month 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
2 Replies
darseen
HOBBYTop 5% Contributor
a month ago
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
a month ago
logs?