{"action":"created","issue":{"url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/issues/69","labels_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/issues/69/comments","events_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/issues/69/events","html_url":"https://github.com/hubot-scripts/hubot-pager-me/issues/69","id":117693485,"number":69,"title":"Unable to trigger on a schedule","user":{"login":"aknapp","id":229757,"avatar_url":"https://avatars.githubusercontent.com/u/229757?v=3","gravatar_id":"","url":"https://api.github.com/users/aknapp","html_url":"https://github.com/aknapp","followers_url":"https://api.github.com/users/aknapp/followers","following_url":"https://api.github.com/users/aknapp/following{/other_user}","gists_url":"https://api.github.com/users/aknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/aknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aknapp/subscriptions","organizations_url":"https://api.github.com/users/aknapp/orgs","repos_url":"https://api.github.com/users/aknapp/repos","events_url":"https://api.github.com/users/aknapp/events{/privacy}","received_events_url":"https://api.github.com/users/aknapp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-18T22:10:00Z","updated_at":"2015-11-24T20:58:57Z","closed_at":"2015-11-24T18:52:00Z","body":"After upgrading to `2.1.10`, I'm unable to trigger on a schedule:\r\n\r\n`<bot> pager trigger <schedule> test`\r\n\r\nresults in:\r\n\r\n```\r\n[Wed Nov 18 2015 22:06:49 GMT+0000 (UTC)] ERROR Error: 400 back from /schedules/undefined/entries\r\n  at PagerDutyError.Error (native)\r\n  at new PagerDutyError (<path>/node_modules/hubot-pager-me/src/pagerduty.coffee:10:1, <js>:26:51)\r\n  at <path>/node_modules/hubot-pager-me/src/pagerduty.coffee:44:20, <js>:74:16\r\n  at IncomingMessage.<anonymous> (<path>/node_modules/scoped-http-client/src/index.js:95:22)\r\n  at IncomingMessage.emit (events.js:129:20)\r\n  at _stream_readable.js:908:16\r\n  at process._tickCallback (node.js:355:11)\r\n\r\n[Wed Nov 18 2015 22:06:49 GMT+0000 (UTC)] ERROR TypeError: Cannot read property 'entries' of null\r\n  at <path>/node_modules/hubot-pager-me/src/scripts/pagerduty.coffee:751:7, <js>:866:17\r\n  at <path>/node_modules/hubot-pager-me/src/pagerduty.coffee:46:9, <js>:76:16\r\n  at IncomingMessage.<anonymous> (<path>/node_modules/scoped-http-client/src/index.js:95:22)\r\n  at IncomingMessage.emit (events.js:129:20)\r\n  at _stream_readable.js:908:16\r\n  at process._tickCallback (node.js:355:11)\r\n```"},"comment":{"url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/issues/comments/159403252","html_url":"https://github.com/hubot-scripts/hubot-pager-me/issues/69#issuecomment-159403252","issue_url":"https://api.github.com/repos/hubot-scripts/hubot-pager-me/issues/69","id":159403252,"user":{"login":"aknapp","id":229757,"avatar_url":"https://avatars.githubusercontent.com/u/229757?v=3","gravatar_id":"","url":"https://api.github.com/users/aknapp","html_url":"https://github.com/aknapp","followers_url":"https://api.github.com/users/aknapp/followers","following_url":"https://api.github.com/users/aknapp/following{/other_user}","gists_url":"https://api.github.com/users/aknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/aknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aknapp/subscriptions","organizations_url":"https://api.github.com/users/aknapp/orgs","repos_url":"https://api.github.com/users/aknapp/repos","events_url":"https://api.github.com/users/aknapp/events{/privacy}","received_events_url":"https://api.github.com/users/aknapp/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T20:58:57Z","updated_at":"2015-11-24T20:58:57Z","body":"FWIW, I still get a error when I try to trigger a page based on a schedule:\r\n\r\n```\r\n[Tue Nov 24 2015 20:56:26 GMT+0000 (UTC)] ERROR TypeError: Cannot read property 'id' of undefined\r\n  at withCurrentOncallUser (<path>/node_modules/hubot-pager-me/src/scripts/pagerduty.coffee:744:7, <js>:858:33)\r\n  at<path>/node_modules/hubot-pager-me/src/scripts/pagerduty.coffee:725:15, <js>:828:24\r\n  at <path>/node_modules/hubot-pager-me/src/scripts/pagerduty.coffee:689:7, <js>:775:16\r\n  at <path>/node_modules/hubot-pager-me/src/pagerduty.coffee:138:7, <js>:185:16\r\n  at <path>/tank/node_modules/hubot-pager-me/src/pagerduty.coffee:46:9, <js>:76:16\r\n  at IncomingMessage.<anonymous> (<path>/node_modules/scoped-http-client/src/index.js:95:22)\r\n  at IncomingMessage.emit (events.js:129:20)\r\n  at _stream_readable.js:908:16\r\n  at process._tickCallback (node.js:355:11)\r\n```"}}