I keep getting a connection error to DB
apsunick
PROOP

2 years ago

I was having my app working fine and all of a sudden I keep getting this error:

psycopg2.OperationalError: could not translate host name "postgres.railway.internal" to address: Name or service not known

I am using the DATABASE_URL variable and I confirmed it is in the app. Not sure why this is happening and how to resolve it.

Solved

3 Replies

What happens when you use the DATABASE_PUBLIC_URL?


Status changed to Awaiting User Response Railway over 1 year ago


apsunick
PROOP

2 years ago

That worked thanks!


Status changed to Awaiting Railway Response Railway over 1 year ago


Wonderful!


Status changed to Awaiting User Response Railway over 1 year ago


Status changed to Solved brody over 1 year ago


Loading...