Hi, I am running neo4j in kubernetes. I expose it via nginx ingress
one url for port 7474 - neo4j-url:443
one url for port 7687 - neo4bolt-url:443
everything was working fine I am able to open neo4j-url/browser and connect to neo4j+s://neo4bolt-url:443
But I was trying to connect from my local machine via python script
from neo4j import GraphDatabase
driver = GraphDatabase.driver("neo4j+s://neo4bolt-url:443", auth=("neo4j","password"))
session = driver.session()
query = """ MATCH (ee:Person) WHERE ee.from = "Sweden" RETURN ee.name as name """
results = session.run(query)
print(results["name"])
I am getting this error
Unable to retrieve routing information
Traceback (most recent call last):
File "db.py", line 14, in <module>
results = session.run(query)
File "C:\anaconda\lib\site-packages\neo4j\work\simple.py", line 221, in run
self._connect(self._config.default_access_mode, database=self._config.database)
File "C:\anaconda\lib\site-packages\neo4j\work\simple.py", line 122, in _connect
bookmarks=self._bookmarks
File "C:\anaconda\lib\site-packages\neo4j\io\__init__.py", line 1118, in acquire
bookmarks=bookmarks
File "C:\anaconda\lib\site-packages\neo4j\io\__init__.py", line 1087, in _select_address
access_mode=access_mode, database=database, bookmarks=bookmarks
File "C:\anaconda\lib\site-packages\neo4j\io\__init__.py", line 1069, in ensure_routing_table_is_fresh
self.update_routing_table(database=database, bookmarks=bookmarks)
File "C:\anaconda\lib\site-packages\neo4j\io\__init__.py", line 1041, in update_routing_table
raise ServiceUnavailable("Unable to retrieve routing information")
neo4j.exceptions.ServiceUnavailable: Unable to retrieve routing information
Not sure what is the problem, any tip ?
Thank you