abahmed / kwatch

:eyes: monitor & detect crashes in your Kubernetes(K8s) cluster instantly
https://kwatch.dev
MIT License
959 stars 75 forks source link

Since v0.8.1 Slack fails with "failed to send msg with Slack: slack server error: 404 Not Found" #203

Closed alexandrevoilab closed 1 year ago

alexandrevoilab commented 1 year ago

Describe the bug After upgrading from 0.8.0 to 0.8.1, Slack messages are no long sent. The configmap didn't change.

Downgrading to 0.8.0 solves the problem.

To Reproduce

Deploy kwatch 0.8.1 with this config map:

data:
  config.yaml: |
    maxRecentLogLines: 50
    ignoreFailedGracefulShutdown: true
    app:
      clusterName: xyz
    alert:
      slack:
        webhook: https://hooks.slack.com/services/XXXXXX/ZZZZZ

Expected behavior Message sent to Slack:

time="2023-03-08T15:45:12Z" level=info msg=":tada: kwatch@v0.8.0 just started!"
time="2023-03-08T15:45:12Z" level=info msg="initializing slack with webhook url: https://hooks.slack.com/services/XXXXXX/ZZZZZ"
time="2023-03-08T15:45:12Z" level=info msg="sending message: :tada: kwatch@v0.8.0 just started!"

Actual behavior No message sent to Slack and errors in logs:

time="2023-03-08T14:41:20Z" level=info msg=":tada: kwatch@v0.8.1 just started!"
time="2023-03-08T14:41:20Z" level=info msg="initializing slack with webhook url: https://hooks.slack.com/services/XXXXXX/ZZZZZ"
time="2023-03-08T14:41:20Z" level=info msg="sending message: :tada: kwatch@v0.8.1 just started!"
time="2023-03-08T14:41:21Z" level=error msg="failed to send msg with Slack: slack server error: 404 Not Found"

Version/Commit 0.8.1

abahmed commented 1 year ago

@alexandrevoilab Should be resolved in v0.8.2

alexandrevoilab commented 1 year ago

Everything is working fine with v0.8.2. :tada: Thanks @abahmed !