Unable to connect with AuraDB with Python code
k.jvspk3@gmail.com
import dotenv
import os
from neo4j import GraphDatabase
load_status = dotenv.load_dotenv("Neo4j-62e523f7-Created-2025-07-17.txt")
if load_status is False:
raise RuntimeError('Environment variables not loaded.')
URI = os.getenv("NEO4J_URI")
AUTH = (os.getenv("NEO4J_USERNAME"), os.getenv("NEO4J_PASSWORD"))
print("URI:", URI)
print("AUTH:", AUTH)
with GraphDatabase.driver(URI, auth=AUTH) as driver:
driver.verify_connectivity()
print("Connection established.")
URI and AUTH credentials are loading properly from the txt file. Still getting Error: "Unable to retrieve routing information"