-
Notifications
You must be signed in to change notification settings - Fork 42
Description
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:password@ompdb.sb05.stations.graphenedb.com: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. (/home/pranavpunjabi/node_modules/node-neo4j/node_modules/superagent/lib/node/index.js:135:10)
at Request.emit (events.js:109:17)
at IncomingMessage. (/home/pranavpunjabi/node_modules/node-neo4j/node_modules/superagent/lib/node/index.js:938:12)
at IncomingMessage.emit (events.js:131:20)
at _stream_readable.js:910:16
at process._tickCallback (node.js:358:11)
Am I using this driver correctly?