502 Bad Gateway

moizkamran
HOBBY

4 months ago

Hi,

I have verfied my code its okay. Its running OK. However I am getting a 502 error when trying to access it.

Solved

14 Replies

moizkamran
HOBBY

4 months ago

4b3a973a-0eb5-498f-a7c7-3f5b0a85988e


moizkamran
HOBBY

4 months ago

My servers are Southeast Asia


smilehyun
PRO

4 months ago

same here. my services are in SouthEast Asia and getting 502 error


starphoneswebtech
PRO

4 months ago

same here


djch
PRO

4 months ago

I think we're having the same networking problem here on the Southeast Asia region. Just with the service we redeployed to this morning. Requests that don't hit the database seem to be okay (static files), so I suspect there's a networking problem between our application container and Postgres.

Attachments


4 months ago

Can y'all link to the service you are having issues with?


starphoneswebtech
PRO

4 months ago

I think something is wrong with postgres

mongodb has no problem

fba556c2-09ab-4c36-a616-d5da0d54f6d6/service/a1f2748c-b3dd-4583-b150-e59142f62b91?environmentId=2c15a52c-7afd-4f3c-85fe-6525a58626d7


djch
PRO

4 months ago

/project/b022b1af-4898-4f67-ae21-c86111a2e4b7/service/35f8e4c4-c40d-4bb3-ae98-f7b0e41c6999?environmentId=421d5a68-925f-4f65-9ff0-9b614e719486


starphoneswebtech
PRO

4 months ago

It started working on my dev env when I migrated my dev postgres to US West


4 months ago

Please provide direct links to the service in question, this can be copied from your browser's omni bar while you have the service in question open.


brody

Please provide direct links to the service in question, this can be copied from your browser's omni bar while you have the service in question open.

starphoneswebtech
PRO

4 months ago

fba556c2-09ab-4c36-a616-d5da0d54f6d6/service/a1f2748c-b3dd-4583-b150-e59142f62b91?environmentId=2c15a52c-7afd-4f3c-85fe-6525a58626d7


brody

Please provide direct links to the service in question, this can be copied from your browser's omni bar while you have the service in question open.

djch
PRO

4 months ago

Apologies. https://railway.com/project/b022b1af-4898-4f67-ae21-c86111a2e4b7/service/35f8e4c4-c40d-4bb3-ae98-f7b0e41c6999?environmentId=421d5a68-925f-4f65-9ff0-9b614e719486

Mine was originally returning triggering 502 for all database-related requests, and eventually changed to timing out and hitting Cloudflare's 100s response time limit instead.

Attachments


smilehyun
PRO

4 months ago

https://railway.com/project/7f0209a5-ac0e-4bdf-bdb2-00088f9178d4?environmentId=481b4a53-3bba-4674-91e7-43de6a29e0ed

Postgres, backend and front end are all in Southeast Asia, and having 502 gateway error on cloudflare


utilised-ai
PRO

4 months ago

Same problem here: e8146aef-4edc-495b-be34-af1bb3cc8648


djch
PRO

4 months ago

Looks like an incident has now been logged for this: https://railway.instatus.com/cma4wxa8j00047yj7joi492tw


mitinhirani
HOBBY

4 months ago

I found a workaround in my deployment. If i use the string stored in DATABASE_PUBLIC_URL instead of the string stored in DATABASE_URL as my database connection string for my frontend, my app loads and works fine.

Public networking appears to be fine for the backend on mine, the problem appears to be with the internal networking between services.

EDIT: I take that back. Did another build and broke it :(


4 months ago

Please follow along with the incident linked above, we are actively working on a fix.


4 months ago

Hello All,

Update here, we have resolved the incident!

Again, very sorry for the inconvenience caused.


4 months ago

!s


Status changed to Solved brody 4 months ago


502 Bad Gateway - Railway Help Station