{"action":"created","issue":{"url":"https://api.github.com/repos/mrvautin/adminMongo/issues/131","repository_url":"https://api.github.com/repos/mrvautin/adminMongo","labels_url":"https://api.github.com/repos/mrvautin/adminMongo/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/mrvautin/adminMongo/issues/131/comments","events_url":"https://api.github.com/repos/mrvautin/adminMongo/issues/131/events","html_url":"https://github.com/mrvautin/adminMongo/issues/131","id":199275024,"number":131,"title":"Editing documents causes app to crash","user":{"login":"Druzion","id":18376209,"avatar_url":"https://avatars.githubusercontent.com/u/18376209?v=3","gravatar_id":"","url":"https://api.github.com/users/Druzion","html_url":"https://github.com/Druzion","followers_url":"https://api.github.com/users/Druzion/followers","following_url":"https://api.github.com/users/Druzion/following{/other_user}","gists_url":"https://api.github.com/users/Druzion/gists{/gist_id}","starred_url":"https://api.github.com/users/Druzion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Druzion/subscriptions","organizations_url":"https://api.github.com/users/Druzion/orgs","repos_url":"https://api.github.com/users/Druzion/repos","events_url":"https://api.github.com/users/Druzion/events{/privacy}","received_events_url":"https://api.github.com/users/Druzion/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-06T19:58:25Z","updated_at":"2017-01-09T03:32:25Z","closed_at":"2017-01-07T20:09:49Z","body":"I am quite new to Node.js and NPM so please forgive me if I have done something wrong.\r\n\r\nI followed the instructions in the README; I created a directory, navigated into it and ran `npm install admin-mongo`. Everything installed without any errors, however it installed into my user's home directory (`C:\\Users\\<username>\\`).\r\nI continued by running the app and I could open it in the browser and connect to a database.\r\nEverything was working fine, I could view all of the documents, until I tried to edit one, at which point the app crashed with the following error(s):\r\n\r\n```\r\nPOST /document/<ConnectionName>/<DatabaseName>/<CollectionName>/insert_doc 200 26.025 ms - 73\r\nC:\\Users\\<username>\\node_modules\\mongodb\\lib\\utils.js:98\r\n    process.nextTick(function() { throw err; });\r\n                                  ^\r\n\r\nTypeError: hex is not a function\r\n    at Function.from (native)\r\n    at Function.from (native)\r\n    at new ObjectID (C:\\Users\\<username>\\node_modules\\bson\\lib\\bson\\objectid.js:52:32)\r\n    at ObjectID (C:\\Users\\<username>\\node_modules\\bson\\lib\\bson\\objectid.js:31:42)\r\n    at Object.exports.get_id_type (C:\\Users\\<username>\\routes\\common.js:157:56)\r\n    at C:\\Users\\<username>\\routes\\index.js:429:16\r\n    at C:\\Users\\<username>\\routes\\common.js:231:13\r\n    at handleCallback (C:\\Users\\<username>\\node_modules\\mongodb\\lib\\utils.js:95:56)\r\n    at C:\\Users\\<username>\\node_modules\\mongodb\\lib\\cursor.js:852:16\r\n    at handleCallback (C:\\Users\\<username>\\node_modules\\mongodb-core\\lib\\cursor.js:171:5)\r\n\r\nnpm ERR! Windows_NT 6.3.9600\r\nnpm ERR! argv \"C:\\\\Program Files (x86)\\\\Nodejs\\\\node.exe\" \"C:\\\\Users\\\\<username>\\\\AppData\\\\Roaming\\\\npm\\\r\n\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"start\" \"app.js\"\r\nnpm ERR! node v4.2.4\r\nnpm ERR! npm  v3.10.2\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! admin-mongo@0.0.20 start: `node app.js \"app.js\"`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the admin-mongo@0.0.20 start script 'node app.js \"app.js\"'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the admin-mongo package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node app.js \"app.js\"\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR!     npm bugs admin-mongo\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR!     npm owner ls admin-mongo\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     C:\\Users\\<username>\\Downloads\\adminMongo\\npm-debug.log\r\n```\r\n\r\nIt only ever happens when I attempt to edit a document. Anyone know why? Thanks!"},"comment":{"url":"https://api.github.com/repos/mrvautin/adminMongo/issues/comments/271205887","html_url":"https://github.com/mrvautin/adminMongo/issues/131#issuecomment-271205887","issue_url":"https://api.github.com/repos/mrvautin/adminMongo/issues/131","id":271205887,"user":{"login":"mrvautin","id":299398,"avatar_url":"https://avatars.githubusercontent.com/u/299398?v=3","gravatar_id":"","url":"https://api.github.com/users/mrvautin","html_url":"https://github.com/mrvautin","followers_url":"https://api.github.com/users/mrvautin/followers","following_url":"https://api.github.com/users/mrvautin/following{/other_user}","gists_url":"https://api.github.com/users/mrvautin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrvautin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrvautin/subscriptions","organizations_url":"https://api.github.com/users/mrvautin/orgs","repos_url":"https://api.github.com/users/mrvautin/repos","events_url":"https://api.github.com/users/mrvautin/events{/privacy}","received_events_url":"https://api.github.com/users/mrvautin/received_events","type":"User","site_admin":false},"created_at":"2017-01-09T03:32:25Z","updated_at":"2017-01-09T03:32:25Z","body":"Pushed post-install script removal to NPM at is was causing issues."}}
{"actor":{"display_login":"mrvautin"}}