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.
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.
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
Wow. Yep that worked, I was using the original 4-digit one. Thanks!
viaduct.proxy.rlwy.net:58983
Status changed to Solved brody • about 1 year ago