502 Bad Gateway error
jkumarp
FREEOP

10 months ago

Getting 502 Bad Gateway error on by backend code even though deployment is successful. my backend is Express.js and frontend is React + vite

$10 Bounty

2 Replies

Railway
BOT

10 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!


fra
HOBBY

10 months ago

can you check which port is exposed in your app? railway uses the default port 8080, if your app is exposed to a different port you need change the port and use 8080 or you need to update the port in Settings => Public Network => Edit and use the port you want


Welcome!

Sign in to your Railway account to join the conversation.

Loading...