title: Unable to retrieve routing information | Neo4j
body: <p>I'm having difficulties connecting to my Neo4j Database in VS Code.</p>
  <p>I started with the boiler plate code that is given on the Neo4J documentation:</p>
  <pre><code>from neo4j import GraphDatabase
  import logging
  from neo4j.exceptions import ServiceUnavailable
  
  class Neo4jConnection:
      
      def __init__(self, uri, user, pwd):
          self.__uri = uri
          self.__user = user
          self.__pwd = pwd
          self.__driver = None
          try:
              self.__driver = GraphDatabase.driver(self.__uri, auth=(self.__user, self.__pwd))
          except Exception as e:
              print(&quot;Failed to create the driver:&quot;, e)
          
      def close(self):
          if self.__driver is not None:
              self.__driver.close()
          
      def query(self, query, db=None):
          assert self.__driver is not None, &quot;Driver not initialized!&quot;
          session = None
          response = None
          try: 
              session = self.__driver.session(database=db) if db is not None else self.__driver.session() 
              response = list(session.run(query))
          except Exception as e:
              print(&quot;Query failed:&quot;, e)
          finally: 
              if session is not None:
                  session.close()
          return response
  </code></pre>
  <p>Then I connected to my database:</p>
  <pre><code>conn = Neo4jConnection(uri=&quot;neo4j+s://7022d007.databases.neo4j.io&quot;, user=&quot;neo4j&quot;, pwd=&quot;****&quot;)
  </code></pre>
  <p>Then I attempted to call for neo4j to run a task in the database:</p>
  <pre><code>query_string = '''
  CALL db.schema.visualization()
  '''
  conn.query(query_string, db='MARA')
  </code></pre>
  <p>Which then failed and gave me the error:
  <strong>Unable to retrieve routing information
  Query failed: Unable to retrieve routing information</strong></p>