Timeout error

cv145
TRIAL

a year ago

Hello,

I keep getting an 'ETIMEDOUT' error code when trying to connect to PostgresSQL from my node JS app. I am using the HTTP domain for PGHOST:

Is that the correct value for PGHOST? I was using the railway internal one before (the default) but that one just didn't let me connect at all.

Everything else seems correct, I'm not sure why my connection is timing out.

Solved

5 Replies

a year ago

That is an HTTPS domain, you would need to use a TCP proxy.

You also can't use the private domain to connect to the database from your computer.


cv145
TRIAL

a year ago

Ok I am using viaduct.proxy.rlwy.net as my PGHOST and still getting a timeout. Am I using the correct value?


a year ago

Are you using the correct (5 digit) port as well?


cv145
TRIAL

a year ago

Wow. Yep that worked, I was using the original 4-digit one. Thanks!

viaduct.proxy.rlwy.net:58983


a year ago

No problem!


Status changed to Solved brody about 1 year ago


Timeout error - Railway Help Station