philippkueng / node-neo4j

Neo4j REST API wrapper for Node.js
MIT License
211 stars 44 forks source link

simple insert not working on GrapheneDB #60

Open pranavpunjabi opened 9 years ago

pranavpunjabi commented 9 years ago

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?

philippkueng commented 9 years ago

thanks @pranavpunjabi for letting us know, i'll look into it over lunch today. Sorry about that.

joemaffei commented 9 years ago

Oddly, this is the only driver so far that has been working for me -- on Graphene or locally.

noamyogev84 commented 7 years ago

I'm not able to get a connection to grapheneDB as well. any progress with this issue?