Neo4j Document says we can use the bolt + routing when we are using the Cluster Mode/setup. I am able to use single node with bolt connection without any issue but if I use the cluster mode/setup it gives me the following error.
Caused by: org.neo4j.driver.v1.exceptions.ClientException: 'bolt+routing' is not a supported transport (in 'bolt+routing://username:password@server.com:7687', available transports are: [bolt].
In cluster mode if I just use bolt+routing://username:password@server.com:7687
I am getting NotALeader Error as below
config.Neo4jConfiguration: Intercepted exception
Exception in thread "main" org.neo4j.ogm.exception.CypherException: Error executing Cypher: Neo.ClientError.Cluster.NotALeader
at org.neo4j.ogm.drivers.bolt.transaction.BoltTransaction.commit(BoltTransaction.java:75)
Note: I am using Spring Data Neo4j for my application