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