ECONNREFUSED connection to server at "****.proxy.rlwy.net" failed

imujo
TRIAL

a year ago

It seams to me that at random times I can connect to my postgres instance on railways, and somethimes i get the following error:

psql: error: connection to server at "****.proxy.rlwy.net", port **** failed: Connection refused
    Is the server running on that host and accepting TCP/IP connections?

I'm using the DATABASE_URL direcly copied from railway to connect to my instance. Yesterday it worked no problem, today I'm getting this error.

On the railway dashboard I don't see anything wrong and it seams everything works. I'm also able to connect from my frontend hosted on vercel so it might be something to do with me trying to connect from localhost?

Any ideas what's wrong here and how to solve it?

2 Replies

imujo
TRIAL

a year ago

22f274b7-db30-4577-8dfe-842b58c197e8


a year ago

perhaps you where trying to connect to the database from a network with a firewall that is blocking non standard ports such as the port in use by that database


juanferespinosa
HOBBY

a year ago

Hello there, I am having the exact same issue. Did you find any answer? I think it has to do with the databases upload it needed to be done. However, if you found a solution please let me know.


a year ago

try connecting to the database while on a VPN connection


ECONNREFUSED connection to server at "****.proxy.rlwy.net" failed - Railway Help Station