{"action":"opened","issue":{"url":"https://api.github.com/repos/mujuni88/sportsscheduler/issues/96","labels_url":"https://api.github.com/repos/mujuni88/sportsscheduler/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/mujuni88/sportsscheduler/issues/96/comments","events_url":"https://api.github.com/repos/mujuni88/sportsscheduler/issues/96/events","html_url":"https://github.com/mujuni88/sportsscheduler/issues/96","id":98322897,"number":96,"title":"Error in heroku while trying to view group","user":{"login":"mujuni88","id":1252222,"avatar_url":"https://avatars.githubusercontent.com/u/1252222?v=3","gravatar_id":"","url":"https://api.github.com/users/mujuni88","html_url":"https://github.com/mujuni88","followers_url":"https://api.github.com/users/mujuni88/followers","following_url":"https://api.github.com/users/mujuni88/following{/other_user}","gists_url":"https://api.github.com/users/mujuni88/gists{/gist_id}","starred_url":"https://api.github.com/users/mujuni88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mujuni88/subscriptions","organizations_url":"https://api.github.com/users/mujuni88/orgs","repos_url":"https://api.github.com/users/mujuni88/repos","events_url":"https://api.github.com/users/mujuni88/events{/privacy}","received_events_url":"https://api.github.com/users/mujuni88/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mujuni88/sportsscheduler/labels/Priority:High","name":"Priority:High","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"tqg5","id":272659,"avatar_url":"https://avatars.githubusercontent.com/u/272659?v=3","gravatar_id":"","url":"https://api.github.com/users/tqg5","html_url":"https://github.com/tqg5","followers_url":"https://api.github.com/users/tqg5/followers","following_url":"https://api.github.com/users/tqg5/following{/other_user}","gists_url":"https://api.github.com/users/tqg5/gists{/gist_id}","starred_url":"https://api.github.com/users/tqg5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tqg5/subscriptions","organizations_url":"https://api.github.com/users/tqg5/orgs","repos_url":"https://api.github.com/users/tqg5/repos","events_url":"https://api.github.com/users/tqg5/events{/privacy}","received_events_url":"https://api.github.com/users/tqg5/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mujuni88/sportsscheduler/milestones/1","html_url":"https://github.com/mujuni88/sportsscheduler/milestones/Beta%20Launch","labels_url":"https://api.github.com/repos/mujuni88/sportsscheduler/milestones/1/labels","id":1065220,"number":1,"title":"Beta Launch","description":"","creator":{"login":"mujuni88","id":1252222,"avatar_url":"https://avatars.githubusercontent.com/u/1252222?v=3","gravatar_id":"","url":"https://api.github.com/users/mujuni88","html_url":"https://github.com/mujuni88","followers_url":"https://api.github.com/users/mujuni88/followers","following_url":"https://api.github.com/users/mujuni88/following{/other_user}","gists_url":"https://api.github.com/users/mujuni88/gists{/gist_id}","starred_url":"https://api.github.com/users/mujuni88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mujuni88/subscriptions","organizations_url":"https://api.github.com/users/mujuni88/orgs","repos_url":"https://api.github.com/users/mujuni88/repos","events_url":"https://api.github.com/users/mujuni88/events{/privacy}","received_events_url":"https://api.github.com/users/mujuni88/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":9,"state":"open","created_at":"2015-04-13T14:59:28Z","updated_at":"2015-07-31T06:04:24Z","due_on":"2015-08-31T05:00:00Z","closed_at":null},"comments":0,"created_at":"2015-07-31T06:04:24Z","updated_at":"2015-07-31T06:04:24Z","closed_at":null,"body":"2015-07-30T23:22:02.434361+00:00 app[web.1]:   plainTextPassword: 'Password1',\r\n2015-07-30T23:22:02.434363+00:00 app[web.1]:   carrier: '@sms.alltelwireless.com',\r\n2015-07-30T23:22:02.434362+00:00 app[web.1]:   phoneNumber: 6018801788,\r\n2015-07-30T23:22:02.434364+00:00 app[web.1]:   email: 'cbuza@gmail.com' }\r\n2015-07-30T23:22:02.434366+00:00 app[web.1]: regex: .*B.*\r\n2015-07-30T23:22:02.440275+00:00 app[web.1]: [ [Function], [Function], [Function], [Function] ]\r\n2015-07-30T23:22:08.616182+00:00 heroku[router]: at=error code=H13 desc=\"Connection closed without response\" method=PUT path=\"/api/users/groups/55baa086ce158b0b00fc9981\" host=sportsscheduler.herokuapp.com request_id=2f21165a-6f22-4bb3-b264-9caadc7367dd fwd=\"73.5.98.97\" dyno=web.1 connect=0ms service=54ms status=503 bytes=0\r\n2015-07-30T23:22:08.564343+00:00 app[web.1]: null\r\n2015-07-30T23:22:08.570863+00:00 app[web.1]: error: MongoError: Mod on _id not allowed\r\n2015-07-30T23:22:08.573801+00:00 app[web.1]: \t\tgroup = group.toObject();\r\n2015-07-30T23:22:08.579158+00:00 app[web.1]: TypeError: Cannot call method 'toObject' of null\r\n2015-07-30T23:22:08.573167+00:00 app[web.1]: \r\n2015-07-30T23:22:08.579162+00:00 app[web.1]:     at setIsAdmin (/app/app/models/users/groups/_privateFunctions.js:8:17)\r\n2015-07-30T23:22:08.579164+00:00 app[web.1]:     at PrivateFunctions.isAdmin (/app/app/models/users/groups/_privateFunctions.js:50:11)\r\n2015-07-30T23:22:08.579166+00:00 app[web.1]:     at Object._onImmediate (/app/node_modules/async/lib/async.js:554:34)\r\n2015-07-30T23:22:08.579165+00:00 app[web.1]:     at fn (/app/node_modules/async/lib/async.js:638:34)\r\n2015-07-30T23:22:08.579168+00:00 app[web.1]:     at processImmediate [as _immediateCallback] (timers.js:363:15)\r\n2015-07-30T23:22:08.740848+00:00 app[web.1]: \r\n2015-07-30T23:22:08.617949+00:00 app[web.1]: error: Forever detected script exited with code: 8\r\n2015-07-30T23:22:08.741854+00:00 app[web.1]: \r\n2015-07-30T23:22:08.566636+00:00 app[web.1]:   _id: 55baa086ce158b0b00fc9981,\r\n2015-07-30T23:22:08.566639+00:00 app[web.1]:   name: 'TestTest',\r\n2015-07-30T23:22:08.566638+00:00 app[web.1]:   createdBy: 55baa071ce158b0b00fc997f,\r\n2015-07-30T23:22:08.566641+00:00 app[web.1]:   members: [ 55baa071ce158b0b00fc997f ],\r\n2015-07-30T23:22:08.566642+00:00 app[web.1]:   events: [ 55bab0ded96ddf170041ce56 ],\r\n2015-07-30T23:22:08.566633+00:00 app[web.1]: before save: { __v: 0,\r\n2015-07-30T23:22:08.566644+00:00 app[web.1]:   admins: [ 55baa071ce158b0b00fc997f ],\r\n2015-07-30T23:22:08.566645+00:00 app[web.1]:   updated: Thu Jul 30 2015 22:09:10 GMT+0000 (UTC),\r\n2015-07-30T23:22:08.566646+00:00 app[web.1]:   created: Thu Jul 30 2015 22:09:10 GMT+0000 (UTC) }\r\n2015-07-30T23:22:08.570668+00:00 app[web.1]: in save\r\n2015-07-30T23:22:08.571916+00:00 app[web.1]: [ [Function], [Function], [Function], [Function] ]\r\n2015-07-30T23:22:08.631147+00:00 app[web.1]: error: Script restart attempt #3\r\n2015-07-30T23:22:08.575910+00:00 app[web.1]: \t\t              ^\r\n2015-07-30T23:22:08.741667+00:00 app[web.1]:  Application loaded using the \"production\" environment configuration\r\n2015-07-30T23:22:08.573406+00:00 app[web.1]: /app/app/models/users/groups/_privateFunctions.js:8\r\n2015-07-30T23:22:10.307938+00:00 app[web.1]: MEAN.JS application started on port 51111\r\n2015-07-30T23:22:17.140557+00:00 heroku[router]: at=info method=GET path=\"/api/users/groups/55baa086ce158b0b00fc9981/events\" host=sportsscheduler.herokuapp.com request_id=91921121-9e09-4706-9975-9d343cd8d483 fwd=\"73.5.98.97\" dyno=web.1 connect=1ms service=62ms status=304 bytes=228\r\n2015-07-30T23:22:17.292493+00:00 app[web.1]: [ [Function], [Function], [Function] ]\r\n2015-07-30T23:22:27.695806+00:00 heroku[router]: at=error code=H13 desc=\"Connection closed without response\" method=PUT path=\"/api/users/groups/55baa086ce158b0b00fc9981\" host=sportsscheduler.herokuapp.com request_id=26fdbf2b-e46d-418d-bb4e-15517ab8e91b fwd=\"73.5.98.97\" dyno=web.1 connect=3ms service=57ms status=503 bytes=0\r\n2015-07-30T23:22:27.674390+00:00 app[web.1]: null\r\n2015-07-30T23:22:27.705166+00:00 app[web.1]: error: Script restart attempt #4\r\n2015-07-30T23:22:27.806184+00:00 app[web.1]:  Application loaded using the \"production\" environment configuration\r\n2015-07-30T23:22:27.806187+00:00 app[web.1]: \r\n2015-07-30T23:22:27.691473+00:00 app[web.1]: before save: { __v: 0,\r\n2015-07-30T23:22:27.691482+00:00 app[web.1]:   name: 'TestTest',\r\n2015-07-30T23:22:27.691478+00:00 app[web.1]:   _id: 55baa086ce158b0b00fc9981,\r\n2015-07-30T23:22:27.691480+00:00 app[web.1]:   createdBy: 55baa071ce158b0b00fc997f,\r\n2015-07-30T23:22:27.691483+00:00 app[web.1]:   members: [ 55baa071ce158b0b00fc997f ],\r\n2015-07-30T23:22:27.691507+00:00 app[web.1]:   events: [ 55bab0ded96ddf170041ce56 ],\r\n2015-07-30T23:22:27.691510+00:00 app[web.1]:   updated: Thu Jul 30 2015 22:09:10 GMT+0000 (UTC),\r\n2015-07-30T23:22:27.691508+00:00 app[web.1]:   admins: [ 55baa071ce158b0b00fc997f ],\r\n2015-07-30T23:22:27.691513+00:00 app[web.1]: in save\r\n2015-07-30T23:22:27.691511+00:00 app[web.1]:   created: Thu Jul 30 2015 22:09:10 GMT+0000 (UTC) }\r\n2015-07-30T23:22:27.691514+00:00 app[web.1]: error: MongoError: Mod on _id not allowed\r\n2015-07-30T23:22:27.691515+00:00 app[web.1]: [ [Function], [Function], [Function], [Function] ]\r\n2015-07-30T23:22:27.691589+00:00 app[web.1]: \r\n2015-07-30T23:22:27.691591+00:00 app[web.1]: /app/app/models/users/groups/_privateFunctions.js:8\r\n2015-07-30T23:22:27.691592+00:00 app[web.1]: \t\tgroup = group.toObject();\r\n2015-07-30T23:22:27.691594+00:00 app[web.1]: \t\t              ^\r\n2015-07-30T23:22:27.691595+00:00 app[web.1]: TypeError: Cannot call method 'toObject' of null\r\n2015-07-30T23:22:27.691597+00:00 app[web.1]:     at setIsAdmin (/app/app/models/users/groups/_privateFunctions.js:8:17)\r\n2015-07-30T23:22:27.691599+00:00 app[web.1]:     at PrivateFunctions.isAdmin (/app/app/models/users/groups/_privateFunctions.js:50:11)\r\n2015-07-30T23:22:27.691600+00:00 app[web.1]:     at fn (/app/node_modules/async/lib/async.js:638:34)\r\n2015-07-30T23:22:27.691601+00:00 app[web.1]:     at Object._onImmediate (/app/node_modules/async/lib/async.js:554:34)\r\n2015-07-30T23:22:27.691603+00:00 app[web.1]:     at processImmediate [as _immediateCallback] (timers.js:363:15)\r\n2015-07-30T23:22:27.692021+00:00 app[web.1]: error: Forever detected script exited with code: 8\r\n2015-07-30T23:22:27.805365+00:00 app[web.1]: \r\n2015-07-30T23:22:29.761364+00:00 app[web.1]: MEAN.JS application started on port 51111\r\n2015-07-30T23:22:43.117944+00:00 heroku[router]: at=info method=GET path=\"/api/users/groups/55baa086ce158b0b00fc9981/events\" host=sportsscheduler.herokuapp.com request_id=c79af350-8bc5-4cb7-a341-cbe2b8bd4553 fwd=\"73.5.98.97\" dyno=web.1 connect=1ms service=212ms status=304 bytes=228\r\n2015-07-30T23:22:43.070898+00:00 app[web.1]: [ [Function], [Function], [Function] ]\r\n2015-07-31T00:26:04.375648+00:00 heroku[web.1]: Idling\r\n2015-07-31T00:26:04.376249+00:00 heroku[web.1]: State changed from up to down\r\n2015-07-31T00:26:08.137058+00:00 heroku[web.1]: Stopping all processes with SIGTERM\r\n2015-07-31T00:26:09.999306+00:00 heroku[web.1]: Process exited with status 143\r\n2015-07-31T06:01:09.819632+00:00 heroku[web.1]: Starting process with command `./node_modules/.bin/forever -m 5 server.js`\r\n2015-07-31T06:01:04.540542+00:00 heroku[web.1]: Unidling\r\n2015-07-31T06:01:04.542850+00:00 heroku[web.1]: State changed from down to starting\r\n2015-07-31T06:01:13.255331+00:00 app[web.1]: warn:    --minUptime not set. Defaulting to: 1000ms"}}