Skip to content

(psycopg2.OperationalError) could not translate host name "DBIPAddress" to address: Name or service not known

0

I get this error: (psycopg2.OperationalError) could not translate host name "DBIPAddress" to address: Name or service not known

when I run the code db= SQLDatabase.from_uri( )

I'm running the code on sagemaker on a studio classic notebook

1 Answer
0

The error you’re encountering indicates that the host name provided in the database URI cannot be resolved. This could be due to an incorrect host name, network connectivity issues, or DNS resolution problems. Ensure you’re using the correct host name/IP address for your database, check your network settings, and verify that DNS servers can resolve the host name correctly

EXPERT

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.