Closed Bug 1971281 Opened 5 months ago Closed 5 months ago

Webhooks fail with anything other than 200 response code

Categories

(bugzilla.mozilla.org :: Extensions, defect)

Production
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: andrew.fenner, Assigned: dkl)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36

Steps to reproduce:

I set up a webhook to point at a microsoft powerautomate which would post to teams.

Actual results:

When the webhook was trigger the post to the enpoint was send but it was marked as failed and resend continuely blocking other messages from sending.

Expected results:

The message should have sent.

The problem is in
https://github.com/mozilla-bteam/bmo/blob/master/extensions/Push/lib/Connector/Webhook.pm#L180

The response from the webhook endpoint is 202 not 200 and this is correct and should be treated as correct

Assignee: nobody → dkl
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Summary: Webhook with 202 response fails → Webhooks fail with anything other than 200 response code

Authored by https://github.com/dklawren
https://github.com/mozilla-bteam/bmo/commit/0e6f580c1d2b7c2f16b4d503eadbd06164b899d7
[master] Bug 1971281 - Webhooks fail with anything other than 200 response code

Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: