Application failed to respond
fleurelle
FREEOP

4 months ago

Hello,

I am pretty new to Railway and have been unable to fix the following 502 bad gateway error.


Application failed to respond

This error appears to be caused by the application.

If this is your project, check out your deploy logs to see what went wrong. Refer to our docs on Fixing Common Errors for help, or reach out over our Help Station.

If you are a visitor, please contact the application owner or try again later.

Request ID:

qvJrjvqnTV-2tuL8O8poTA


The build/deploy logs are clean. Please help!

Solved$10 Bounty

Pinned Solution

Try logging the variable your application is listening on console.log(process.env.PORT) for example, and map that port to your URL in service settings > networking.

7 Replies

Railway
BOT

4 months ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway • 4 months ago


Make sure your application is listening on the same port your URL is mapped to.


carcacena
FREE

4 months ago

Good morning. I have genealogy software. Java 21 and MySQL 8 configuration. I can't put it in the cloud. Thank you. Jose


darseen

Make sure your application is listening on the same port your URL is mapped to.

fleurelle
FREEOP

4 months ago

I am semi-certain that I did so, however, the error persists. I've got the port mapped to $PORT variable. Is that correct?


4 months ago

make sure your app listening to address 0.0.0.0 instead of localhost or 127.0.0.1


fleurelle

I am semi-certain that I did so, however, the error persists. I've got the port mapped to $PORT variable. Is that correct?

Try logging the variable your application is listening on console.log(process.env.PORT) for example, and map that port to your URL in service settings > networking.


carcacena

Good morning. I have genealogy software. Java 21 and MySQL 8 configuration. I can't put it in the cloud. Thank you. Jose

Please create your own thread.


darseen

Try logging the variable your application is listening on `console.log(process.env.PORT)` for example, and map that port to your URL in service settings > networking.

fleurelle
FREEOP

4 months ago

It worked! Thank you!


Status changed to Solved 0x5b62656e5d • 4 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...