Open ghost opened 7 years ago
My guess is that the return
from err
allows the bot to emit the error, but doesn't provide user feedback. As this pattern happens elsewhere in the code, it might not be isolated to notes.
Looks like notes, overrides and maintenance_windows may also be affected as the use they pagerduty.post
function.
The post function in the pagerduty module is expecting a 201 response from PD:
https://github.com/hubot-scripts/hubot-pager-me/blob/master/src/pagerduty.coffee#L83-L87
whats best to do here; fix it now or wait for the API V2 stuff to come through ?
whats best to do here; fix it now or wait for the API V2 stuff to come through ?
I actually don't have a PagerDuty login anymore, so I personally can't develop against it. Whatever V2 work would probably encounter the same issue unless it was refactored entirely.
When triggered with an invalid/non existent issue number while adding notes eg
pager note 999999 chicken on fire
Hubot does not respond in the chat/channel to say there's been an issue adding the note.While there's no response given by hubot in the channel an http 400 error message is seen in the hubot logs: