alertmanager/notify/slack
Anton Tolchanov 94625df2b2
Treat error response payloads from Slack as errors (#3121)
As described in the "More error types" section below, Slack API can return
errors with a 200 response code:
https://slack.dev/node-slack-sdk/web-api#handle-errors

This change adds parsing of API response to extract error messages.

Signed-off-by: Anton Tolchanov <anton@tailscale.com>
2023-08-10 10:59:13 +01:00
..
slack.go Treat error response payloads from Slack as errors (#3121) 2023-08-10 10:59:13 +01:00
slack_test.go Treat error response payloads from Slack as errors (#3121) 2023-08-10 10:59:13 +01:00