-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Is there a non valid char or json in this request ? #64
Description
Hi,
Trying to send this to neo4j, and it breaks some BadInput rest format (I cant understand from the log). Doing a cURL in their webadmin console get the results correctly, so i it might be something with the library/superagent ? Can i use ? in the url and i guess the properties json is ok as well ?
request
.post('http://localhost:7474/db/data/index/node/users?unique')
.set('Content-Type', 'application/json')
.set('Accept', 'application/json')
.send({"key": "name", "value": "myname", "properties": {"name": "myname", "pass": "dd7f89ad79f"}})
.end(function(res){
if (res.ok) {
console.log('yay got ' + JSON.stringify(res.body));
} else {
console.log('Oh no! error ' + res.text);
}
});
It should be noted that i can send other json requests to the server, more simple key values not nested ones.
Thanks for a great nodejs extension!