502 bad gateway
florentjousse
PROOP

4 months 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

Pinned Solution

fra
HOBBYTop 10% Contributor

4 months 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

5 Replies

Railway
BOT

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


florentjousse
PROOP

4 months ago


4 months 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 5 months ago


4 months 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

4 months 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
PROOP

4 months ago

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


Status changed to Solved brody 5 months ago


Loading...