Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simple insert not working on GrapheneDB #60

Open
pranavpunjabi opened this issue Apr 19, 2015 · 3 comments
Open

simple insert not working on GrapheneDB #60

pranavpunjabi opened this issue Apr 19, 2015 · 3 comments

Comments

@pranavpunjabi
Copy link

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. (/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
Copy link
Owner

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

@joemaffei
Copy link

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

@noamyogev84
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants