502 Gateway error when calling api
saeed-geek
FREEOP

10 months ago

Basically, first time deploying my application, im using nestjs/typeorm/supabase-postgres, everything works fine in development, put it github and then deployed in railway, everything run fine and i got the domain but when i try an endpoint im getting following error {

"status": "error",

"code": 502,

"message": "Application failed to respond",

"request_id": "Aqre3eSfQH-BuZUm5nX1uw"

}

spent whole day looking for solutions, and it doesn't work :(

Solved$10 Bounty

Pinned Solution

10 months ago

Do you have a PORT variable that matches the service's port, and does your domain point to that same port?

2 Replies

Railway
BOT

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


10 months ago

Do you have a PORT variable that matches the service's port, and does your domain point to that same port?


Status changed to Solved samgordon 10 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...