Skip to content
Error 502 Bad Gateway
inngeniero
OP

a year ago

Hello, can you help me with this please?

I've deployed a FastAPI service but haven't been able to make HTTP calls to it. I always get a 502 Bad Gateway error.

I make the HTTP call from my web application, since I have that domain allowed for CORS ORIGINS, but I still get the CORS ORIGINS error along with the 502 Bad Gateway error.

Solved$10 Bounty

Pinned Solution

fra

a year ago

Can you please check you are exposing the app to the port 8080?

If you want to use another port please update the port in setting -> public network and redeploy the service

5 Replies

Railway
BOT

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


fra

a year ago

Can you please check you are exposing the app to the port 8080?

If you want to use another port please update the port in setting -> public network and redeploy the service


fra

Can you please check you are exposing the app to the port 8080? If you want to use another port please update the port in setting -> public network and redeploy the service

inngeniero
OP

a year ago

Well, the logs of the service says that it is deployed on port 8080

The PROCFILE is also defined with that port


fra

a year ago

Are you able to send requests directly to the api with curl or postman?

Is your app sending requests using the public URL?


inngeniero
OP

a year ago

I already resolve my problem changing the port in this part in settings

Thanks for help


Status changed to Open brody • about 1 year ago


Status changed to Solved brody • about 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...