neo4rs icon indicating copy to clipboard operation
neo4rs copied to clipboard

NotALeader Errors

Open nixxholas opened this issue 7 months ago • 12 comments

Greetings guys, facing this errors and tried alternatives around this. The only way is to use the neo4j crate by another developer (But it does not have the bells and whistles we have here).

Error: unexpected response for RUN: Failure(Failure { metadata: BoltMap { value: {BoltString { value: "message" }: String(BoltString { value: "No write operations are allowed directly on this database. Writes must pass through the leader. The role of this server is: FOLLOWER" }), BoltString { value: "code" }: String(BoltString { value: "Neo.ClientError.Cluster.NotALeader" })} } })

Anyway we can workaround this? Using Neo4J Aura, seems like routing is already dealt with on the server side.

nixxholas avatar Jul 30 '24 20:07 nixxholas