2

Im using py2neo(2020.1.0) to connect and make queries in Neo4j, Getting below error

No write operations are allowed directly on this database. Writes must pass through the leader. The role of this server is: FOLLOWER

I use neo4j+s: scheme to connect, When I gone through the articles neo4j+s: will take care of routing. But It seems not working. Is it possible to get around with this ?

Selvakumar Ponnusamy
  • 5,363
  • 7
  • 40
  • 78

1 Answers1

0

You need to use bolt+routing if you want to open connection to FOLLOWER, but writes to be sent to LEADER:

  ./cypher-shell -a bolt+routing://the_follower:7637
R2D2
  • 9,410
  • 2
  • 12
  • 28