Timeout error
cv145
TRIALOP

2 years 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:

postgres-production-c309.up.railway.app

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

2 years 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
TRIALOP

2 years ago

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


2 years ago

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


cv145
TRIALOP

2 years ago

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

viaduct.proxy.rlwy.net:58983


2 years ago

No problem!


Status changed to Solved brody over 1 year ago


Loading...