Skip to content

204 status in generic webhook is treated as error #441

Closed

Description

@makkes

When a webhook configured through the generic or generic-hmac Provider returns an HTTP status of 204 an error is logged:

{"level":"error","ts":"2022-11-16T14:28:39.167Z","logger":"event-server","msg":"failed to send notification","reconciler kind":"HelmRelease","name":"metallb","namespace":"metallb","error":"postMessage failed: request failed with status code 204, "}

I think we should treat any 2xx status as success.

Activity

  1. added
    bug
    area/alerting
    on Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/alertingbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions