{"action":"created","issue":{"url":"https://api.github.com/repos/mrvautin/adminMongo/issues/108","repository_url":"https://api.github.com/repos/mrvautin/adminMongo","labels_url":"https://api.github.com/repos/mrvautin/adminMongo/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/mrvautin/adminMongo/issues/108/comments","events_url":"https://api.github.com/repos/mrvautin/adminMongo/issues/108/events","html_url":"https://github.com/mrvautin/adminMongo/issues/108","id":176175952,"number":108,"title":"Crash on New Document/Insert","user":{"login":"sagargulati","id":2825887,"avatar_url":"https://avatars.githubusercontent.com/u/2825887?v=3","gravatar_id":"","url":"https://api.github.com/users/sagargulati","html_url":"https://github.com/sagargulati","followers_url":"https://api.github.com/users/sagargulati/followers","following_url":"https://api.github.com/users/sagargulati/following{/other_user}","gists_url":"https://api.github.com/users/sagargulati/gists{/gist_id}","starred_url":"https://api.github.com/users/sagargulati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagargulati/subscriptions","organizations_url":"https://api.github.com/users/sagargulati/orgs","repos_url":"https://api.github.com/users/sagargulati/repos","events_url":"https://api.github.com/users/sagargulati/events{/privacy}","received_events_url":"https://api.github.com/users/sagargulati/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-10T11:53:23Z","updated_at":"2016-09-11T20:55:28Z","closed_at":null,"body":"Hello,\r\nI am running adminMongo on my domain.com/adminMongo\r\nit works normally fine but when i add or insert a new document it crashes, i have checked in NPM for errors:\r\n\r\nHere it what it shows on crash\r\n\r\n```\r\n\r\nTypeError: Cannot read property '0' of undefined\r\n    at /root/developer/screens/adminMongo/routes/index.js:607:104\r\n    at handleCallback (/root/developer/screens/adminMongo/node_modules/mongodb/lib/utils.js:96:12)\r\n    at Object.cb (/root/developer/screens/adminMongo/node_modules/mongodb/lib/collection.js:1041:5)\r\n    at /root/developer/screens/adminMongo/node_modules/mongodb-core/lib/connection/pool.js:446:18\r\n    at authenticateStragglers (/root/developer/screens/adminMongo/node_modules/mongodb-core/lib/connection/pool.js:402:16)\r\n    at null.messageHandler (/root/developer/screens/adminMongo/node_modules/mongodb-core/lib/connection/pool.js:424:5)\r\n    at Socket.<anonymous> (/root/developer/screens/adminMongo/node_modules/mongodb-core/lib/connection/connection.js:294:22)\r\n    at emitOne (events.js:77:13)\r\n    at Socket.emit (events.js:169:7)\r\n    at readableAddChunk (_stream_readable.js:146:16)\r\n\r\nnpm ERR! Linux 4.4.0-22-generic\r\nnpm ERR! argv \"/usr/bin/nodejs\" \"/usr/bin/npm\" \"start\"\r\nnpm ERR! node v4.2.6\r\nnpm ERR! npm  v3.5.2\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! admin-mongo@0.0.12 start: `node app.js`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the admin-mongo@0.0.12 start script 'node 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\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!     /root/developer/screens/adminMongo/npm-debug.log\r\nroot@wolf:~/developer/screens/adminMongo# npm start\r\n\r\n> admin-mongo@0.0.12 start /root/developer/screens/adminMongo\r\n>\r\n```\r\n\r\nnpm starts work fine, i am running it behind a \"screen\" using \"npm start\"\r\n\r\nPlease help!\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/mrvautin/adminMongo/issues/comments/246204040","html_url":"https://github.com/mrvautin/adminMongo/issues/108#issuecomment-246204040","issue_url":"https://api.github.com/repos/mrvautin/adminMongo/issues/108","id":246204040,"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":"2016-09-11T20:55:28Z","updated_at":"2016-09-11T20:55:28Z","body":"This generally happens when the name of the working folder is the same name as a package that you're trying to install.\n\nTry delete or rename the folder and try again. Same as: https://github.com/mrvautin/adminMongo/issues/103"}}
{"actor":{"display_login":"mrvautin"}}