hubot-archive / hubot-pager-me

PagerDuty integration for Hubot
https://www.npmjs.com/package/hubot-pager-me
MIT License
73 stars 93 forks source link

pager ack! 400 error #57

Closed d4v3y0rk closed 8 years ago

d4v3y0rk commented 8 years ago

I am getting this error when I am doing a Hubot pager ack!

Everything works fine when I do a Hubot pager ack <incident number>

https://gist.github.com/d4v3y0rk/2edb0cab3e324e9ef05b

User: awesomeuser asked me to "botzo pager ack!" in Channel: web-ops
400
{"error":{"message":"Invalid Input Provided","code":2001,"errors":["Status must be a list of triggered, acknowledged, or resolved."]}}
[Fri Oct 30 2015 13:58:00 GMT+0000 (UTC)] ERROR TypeError: Cannot read property 'incidents' of null
  at /opt/botzo/node_modules/hubot-pager-me/src/scripts/pagerduty.coffee:670:7, <js>:810:23
  at /opt/botzo/node_modules/hubot-pager-me/src/scripts/pagerduty.coffee:511:9, <js>:601:16
  at IncomingMessage.<anonymous> (/opt/botzo/node_modules/hubot/node_modules/scoped-http-client/src/index.js:95:22)
  at IncomingMessage.emit (events.js:129:20)
  at _stream_readable.js:908:16
  at process._tickCallback (node.js:355:11)
stephenyeargin commented 8 years ago

May be related to #56 (/cc @codywilbourn) -- planning to ship a patch today if there aren't any objections.

codywilbourn commented 8 years ago

Yes this is the same issue I ran in to. ack <num> works, ack and ack! do not.

stephenyeargin commented 8 years ago

Fixed in v2.1.7