I have setup Neo4j on AWS. To this DB i am able to connect and fetch data using Bolt protocol via python code , however trying to connect to DB from Javascript results in below error.
Neo4jError: Unknown Bolt protocol version: 0
Are there any things i should keep in mind and configuration that needs to be done with nodejs(javascript) code , for it to be able to successfully connect to DB ?
Facing same error while trying to connecting from "Neo4j Browser" from local system.
Without modification your instance will only connect to localhost with no ability to connect from outside. You can enable this in the /etc/neo4j/neo4j.conf file. Look for the LISTEN parameters.
Note that you need to restart after changes. Also note that your AWS instance is probably protected by their default firewall.
You can modify as needed or use a ssh tunnel if you need a temporary connection.
I have modified parameters in neo4j.conf file and restarted Neo4j so those parameter changes take effect. As mentioned , I am able to connect to DB via python code and query it , however facing issue specifically with connecting from NodeJs code. I have installed required neo4j-driver libraries on my code but still facing issue.
Both Python and JS are running on the same host as the Neo4J instance?
Then you ignore my ramblings on the network config
Are you on 3.5 or 4.x ? Is your JS driver matching the Neo4J version?
Its safe to assume there is some issue with the JS driver, I am not familiar enough with it to be of any assistance. Perhaps you can find useful info in the release info at Home · neo4j/neo4j-javascript-driver Wiki · GitHub
My code snippet is fairly similar to your example.
I am trying to connect to Neo4j version 3.5.17 and have installed Javascript driver version 4.1.0.
However while trying to run the code i am either getting either of these error.