{"action":"created","issue":{"url":"https://api.github.com/repos/thingdom/node-neo4j/issues/171","labels_url":"https://api.github.com/repos/thingdom/node-neo4j/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/thingdom/node-neo4j/issues/171/comments","events_url":"https://api.github.com/repos/thingdom/node-neo4j/issues/171/events","html_url":"https://github.com/thingdom/node-neo4j/issues/171","id":108173492,"number":171,"title":"401 Unauthorized when supplying auth object in configuration. ","user":{"login":"NukaPunk","id":6144177,"avatar_url":"https://avatars.githubusercontent.com/u/6144177?v=3","gravatar_id":"","url":"https://api.github.com/users/NukaPunk","html_url":"https://github.com/NukaPunk","followers_url":"https://api.github.com/users/NukaPunk/followers","following_url":"https://api.github.com/users/NukaPunk/following{/other_user}","gists_url":"https://api.github.com/users/NukaPunk/gists{/gist_id}","starred_url":"https://api.github.com/users/NukaPunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NukaPunk/subscriptions","organizations_url":"https://api.github.com/users/NukaPunk/orgs","repos_url":"https://api.github.com/users/NukaPunk/repos","events_url":"https://api.github.com/users/NukaPunk/events{/privacy}","received_events_url":"https://api.github.com/users/NukaPunk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thingdom/node-neo4j/labels/question","name":"question","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/thingdom/node-neo4j/milestones/1","html_url":"https://github.com/thingdom/node-neo4j/milestones/v2%20redesign","labels_url":"https://api.github.com/repos/thingdom/node-neo4j/milestones/1/labels","id":444103,"number":1,"title":"v2 redesign","description":"https://github.com/thingdom/node-neo4j/wiki/Roadmap#v20","creator":{"login":"aseemk","id":537838,"avatar_url":"https://avatars.githubusercontent.com/u/537838?v=3","gravatar_id":"","url":"https://api.github.com/users/aseemk","html_url":"https://github.com/aseemk","followers_url":"https://api.github.com/users/aseemk/followers","following_url":"https://api.github.com/users/aseemk/following{/other_user}","gists_url":"https://api.github.com/users/aseemk/gists{/gist_id}","starred_url":"https://api.github.com/users/aseemk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aseemk/subscriptions","organizations_url":"https://api.github.com/users/aseemk/orgs","repos_url":"https://api.github.com/users/aseemk/repos","events_url":"https://api.github.com/users/aseemk/events{/privacy}","received_events_url":"https://api.github.com/users/aseemk/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":6,"state":"open","created_at":"2013-10-02T22:14:19Z","updated_at":"2015-09-24T20:13:06Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-09-24T17:11:49Z","updated_at":"2015-09-24T21:05:04Z","closed_at":null,"body":"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\"`.\r\n\r\nI'm executing a MERGE and get the following error:\r\n\r\n``` JavaScript\r\n[Error][uncaughtException][neo4j.ClientError: 401 Unauthorized response for POST /db/data/transaction/commit: {\r\n    \"errors\": [\r\n        {\r\n            \"code\": \"Neo.ClientError.Security.AuthorizationFailed\",\r\n            \"message\": \"No authorization header supplied.\"\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\nHere is my configuration:\r\n\r\n``` JavaScript\r\nvar db = new neo4j.GraphDatabase({\r\n    url: process.env.NEO4J_SERVER,\r\n    auth: {\r\n        username: process.env.NEO4J_USER,\r\n        password: process.env.NEO4J_PASS\r\n    },\r\n    headers: {},    \r\n    proxy: null,   \r\n    agent: null  \r\n});\r\n```\r\n\r\nAnd here is the query I'm using:\r\n``` JavaScript\r\ndb.cypher({\r\n            queries: [{\r\n                query: \"MERGE (k:thing { id: 0, name: 'Other' })\"\r\n            }, {\r\n                query: \"MERGE (k:thing { { id: 1, name: 'Another' })\"\r\n            }]\r\n        }, function (err, nodes) {\r\n            if (err) {\r\n                throw (err);\r\n            } \r\n        });\r\n```"},"comment":{"url":"https://api.github.com/repos/thingdom/node-neo4j/issues/comments/143050747","html_url":"https://github.com/thingdom/node-neo4j/issues/171#issuecomment-143050747","issue_url":"https://api.github.com/repos/thingdom/node-neo4j/issues/171","id":143050747,"user":{"login":"NukaPunk","id":6144177,"avatar_url":"https://avatars.githubusercontent.com/u/6144177?v=3","gravatar_id":"","url":"https://api.github.com/users/NukaPunk","html_url":"https://github.com/NukaPunk","followers_url":"https://api.github.com/users/NukaPunk/followers","following_url":"https://api.github.com/users/NukaPunk/following{/other_user}","gists_url":"https://api.github.com/users/NukaPunk/gists{/gist_id}","starred_url":"https://api.github.com/users/NukaPunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NukaPunk/subscriptions","organizations_url":"https://api.github.com/users/NukaPunk/orgs","repos_url":"https://api.github.com/users/NukaPunk/repos","events_url":"https://api.github.com/users/NukaPunk/events{/privacy}","received_events_url":"https://api.github.com/users/NukaPunk/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T21:05:04Z","updated_at":"2015-09-24T21:05:04Z","body":"This is a dev box, so nothing sensitive! Url is `http://localhost:7474`. I will update once I try the strings directly. "}}