Re: Could not resolve host name error in psycopg2

2020-04-16 Thread derwin theduck
Thank you, I've changed it to use the server's IP address since, so I'll wait to see if the error happens again. On Fri, 17 Apr 2020 at 09:00, Adrian Klaver wrote: > On 4/16/20 5:38 PM, derwin theduck wrote: > > We have been getting this error intermittently (about on

Could not resolve host name error in psycopg2

2020-04-16 Thread derwin theduck
We have been getting this error intermittently (about once a week) in Django with channels since switching from a local database server to a hosted one: could not translate host name "timescaledb" to address: Name or service not known Connecting directly to the server with psycopg2 in the python