502 bad gateway

florentjousse
HOBBYOP

a month ago

Hi,

I do have a 502 bad gateway error while reaching this service.

- It's a react frontend. Everything works fine when running locally.
- Deployment status is running on railway
- DNS configuration shows no errors

I'm not sure how to debug this.

Thanks in advance for the support

Solved$10 Bounty

5 Replies

Railway
BOT

a month 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!


florentjousse
HOBBYOP

a month ago


a month ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 27 days ago


Hi!

Can you share the deployment logs and a screenshot of the public networking section of the service's settings?


fra
HOBBYTop 10% Contributor

a month ago

Can you check which port is exposed in your app? Railway default port is 8080, if you expose a different port it might throw this error.

To fix the issue expose your app with the port 8080 or change the port in the public network to match whatever port you use in your app


florentjousse
HOBBYOP

a month ago

Thanks that was indeed the problem. I was exposing 8000 instead of 8080


Status changed to Solved brody 27 days ago


Loading...
502 bad gateway - Railway Help Station