502 bad gateway
lucas-steffen
HOBBYOP

3 months ago

My application deployed successfully, and the logs show that it is running on localhost:5173. However, when accessing the application's public URL, it returns a 502 error page

Solved$10 Bounty

5 Replies

Status changed to Awaiting Railway Response Railway 3 months ago


fra
HOBBYTop 5% Contributor

3 months ago

can you please check that your app is exposed in the same port as the port set in Settings=>Public Network=>Port?


lucas-steffen
HOBBYOP

3 months ago

Ye, Port 5173

Attachments


Make sure your application is also listening in 0.0.0.0 instead of :: and/or localhost.


lucas-steffen
HOBBYOP

3 months ago

How can I verify this? In my server.ts file, only my URLs and localhost are available.


lucas-steffen
HOBBYOP

3 months ago

I tried deleting the service and redeploying it, but the error persists.

The service is running on port 5173.

The URL conversy.up.railway.app is accessing port 5173.

It's accessing the main branch in the root directory ./ (which contains the src and public folders, and files like packages, among others).


Status changed to Solved lucas-steffen 3 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...