Skip to content

Is there a non valid char or json in this request ? #64

@lundin

Description

@lundin

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions