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
2 Replies
Railway
BOT
10 months ago
Hey there! We've found the following might help you get unblocked faster:
- 🧵 502 bad gateway
- 🧵 Bad gateway when using Vite - React - Caddy
- 🧵 Getting 502 bad gateway when deploying Vite. No logs updating
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