cancel
Showing results for 
Search instead for 
Did you mean: 

Neo4j Casual Cluster Connection Issue with bolt+routing Protocol(Node JS driver)

susampath
Node

Need clarification on:

  • Available methods to connect to Neo4j Causal Cluster from a Node.js application.

  • The connection string that we need to use to connect to the Neo4j Causal Cluster consists of 3 Core Servers for Write/Read operation from a Node.js application.

Got the below error from the Node.js application when using bolt+routing://<MULTIVALUE_DNS_RECORD> connection string.

2022-01-06 07:43:15/usr/src/app/node_modules/neo4j-driver/lib/index.js:287
2022-01-06 07:43:15throw new Error("Unknown scheme: ".concat(parsedUrl.scheme));
2022-01-06 07:43:15^
2022-01-06 07:43:15Error: Unknown scheme: bolt+routing
2022-01-06 07:43:15at Object.driver (/usr/src/app/node_modules/neo4j-driver/lib/index.js:287:13)
2022-01-06 07:43:15at Object.<anonymous> (/usr/src/app/db/neo4j.js:4:27)
2022-01-06 07:43:15at Module._compile (internal/modules/cjs/loader.js:1085:14)
2022-01-06 07:43:15at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
2022-01-06 07:43:15at Module.load (internal/modules/cjs/loader.js:950:32)
2022-01-06 07:43:15at Function.Module._load (internal/modules/cjs/loader.js:790:12)
2022-01-06 07:43:15at Module.require (internal/modules/cjs/loader.js:974:19)
2022-01-06 07:43:15at require (internal/modules/cjs/helpers.js:93:18)
2022-01-06 07:43:15at Object.<anonymous> (/usr/src/app/routes/v1-common.js:3:23)
2022-01-06 07:43:15at Module._compile (internal/modules/cjs/loader.js:1085:14)

Version details

  • Neo4j Enterprise Version: 4.3.6

  • Node JS : 14.3

  • neo4j-driver : 4.4.1

It would be a great help if any one can give a solution on this.

2 REPLIES 2

david_allen
Neo4j
Neo4j

See the "available URI schemes" table in this documentation. Client applications - Neo4j Java Driver Manual

I think you should change your URI schemee and use neo4j+s or neo4j+ssc instead of bolt+routing. You are using a driver that is > 4.4, and neo4j:// schemes replace bolt+routing and do the same thing.

susampath
Node

@david.allen
Thanks a lot for the clarification.

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.