I'm Trying to connect to neo4j aura db using python but im unable to connect to the database

from neo4j import GraphDatabase

uri = "neo4j+s://<instance_id>databases.neo4j.io"
user = "neo4j"
password = "<password>"

driver = GraphDatabase.driver(uri, auth=(user, password))

try:
    with driver.session() as session:
        result = session.run("RETURN 'Connection successful' AS message")
        print(result.single()["message"])
except Exception as e:
    print(f"Connection failed: {e}")
finally:
    driver.close()

when i run the above code im getting error as shown below
Unable to retrieve routing information
Connection failed: Unable to retrieve routing information

Hi @murali.g, this is a common issue with Python; a quick test is to turn off the certificate validation using neo4j+ssc://<instance_id>.databases.neo4j.io. Note this is not a long-term solution as it is not secure.

If you run python -c "import ssl; print(ssl.get_default_verify_paths())" it will show your certificate authority paths. You'll need to ensure that a valid certificate authority is set up; if you are running in a virtual environment, try using your global Python interpreter.