cancel
Showing results for 
Search instead for 
Did you mean: 

Neo4j disconnects constantly

rhobin
Node

I'm testing Neo4j (Aura on its free version).. I'm using Flask and using py2neo to connect...


The app runs alright but after some time (hours) I end up receiving this error :
py2neo.errors.ServiceUnavailable: Cannot connect to any known routers
I have to restart the Flask server each time, im running it on AWS so its pretty bad...


I connect using  neo4j+s:
and this is how I connect to the server:


graph_db=Graph(AURA_URI,auth=(AURA_USER,AURA_PASSWORD),port=AURA_PORT, secure=True)

what do you thin could be the problem? should I move to neo4j own driver? 
(I have written plenty queries like this so it would be painful)


is it because it is the free version? im planning to move to a paid aura DB anyway but I don't know if the problem would continue...


is it a configuration problem?


Thank you

2 REPLIES 2

rhobin
Node

mwalker
Node

rhobin,

Did you ever solve it? I've been dealing with the same problem for weeks.

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.