Unable to connect via psycopg2
Hi,
In my python project I'm trying to connect to my neon database using psycopg2. I've followed this tutorial in a competely new project
https://neon.tech/docs/guides/python
But I keep ending up with this error:
psycopg2.OperationalError: could not translate host name "iHET@ep-fragrant-term-a21bvidu.eu-central-1.aws.neon.tech" to address: A non-recoverable error occurred during a database lookup.
As far as the connection string I am using, I do as the guide says and the one from the dashboard of my database and then i put in the password for my account in place of the stars.
Anybody tried something similar?
In my python project I'm trying to connect to my neon database using psycopg2. I've followed this tutorial in a competely new project
https://neon.tech/docs/guides/python
But I keep ending up with this error:
psycopg2.OperationalError: could not translate host name "iHET@ep-fragrant-term-a21bvidu.eu-central-1.aws.neon.tech" to address: A non-recoverable error occurred during a database lookup.
As far as the connection string I am using, I do as the guide says and the one from the dashboard of my database and then i put in the password for my account in place of the stars.
Anybody tried something similar?
Neon
This guide describes how to create a Neon project and connect to it from a simple Python application using Psycopg (psycopg2), a popular Postgres database adapter for the Python programming language. ...
