node-neo4j
node-neo4j copied to clipboard
simple insert not working on GrapheneDB
I tried this simple insert sample using node-neo4j driver with db hosted on GrapheneDB.
var neo4j = require('node-neo4j');
db = new neo4j('http://user:[email protected]:24789');
db.insertNode({
name: 'Darth Vader',
sex: 'male'
},function(err, node){
if(err) throw err;
console.log(node.data);
console.log(node._id);
});
The program fails to execute and gives out an error:
Error: Response body is empty
at /home/pranavpunjabi/node_modules/node-neo4j/lib/main.js:52:15
at Request.callback (/home/pranavpunjabi/node_modules/node-neo4j/node_modules/superagent/lib/node/index.js:748:3)
at Request.
Am I using this driver correctly?
thanks @pranavpunjabi for letting us know, i'll look into it over lunch today. Sorry about that.
Oddly, this is the only driver so far that has been working for me -- on Graphene or locally.
I'm not able to get a connection to grapheneDB as well. any progress with this issue?