-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Description
Thanks for taking the time to take a look at this. I just updated and I'm getting a new error when I try to hit the database. In my package.json I have "neo4j": "^2.0.0-RC2"
.
I'm executing a MERGE and get the following error:
[Error][uncaughtException][neo4j.ClientError: 401 Unauthorized response for POST /db/data/transaction/commit: {
"errors": [
{
"code": "Neo.ClientError.Security.AuthorizationFailed",
"message": "No authorization header supplied."
}
]
}
Here is my configuration:
var db = new neo4j.GraphDatabase({
url: process.env.NEO4J_SERVER,
auth: {
username: process.env.NEO4J_USER,
password: process.env.NEO4J_PASS
},
headers: {},
proxy: null,
agent: null
});
And here is the query I'm using:
db.cypher({
queries: [{
query: "MERGE (k:thing { id: 0, name: 'Other' })"
}, {
query: "MERGE (k:thing { { id: 1, name: 'Another' })"
}]
}, function (err, nodes) {
if (err) {
throw (err);
}
});