Stop returning 4xx status code in Webhook response

Created on 5 February 2024, 11 months ago
Updated 6 February 2024, 11 months ago

Problem/Motivation

Phrase has a problem with webhooks returning 4xx responses, this is a notification mail I have received:

The webhook https://xxxxxx.com/tmgmt_memsource_callback has
repeatedly failed and is now disabled. Please check your server availability and enable the webhook manually.
Webhook URL: https://xxxxxx.com/tmgmt_memsource_callback
Error: Webhook call to https://xxxxxx.com/tmgmt_memsource_callback
returned invalid code 404: HTTP/1.1 404 Not found

The documentation page also mentioned that you should return 2xx response code.

https://support.phrase.com/hc/en-us/articles/5784125630620-Webhooks-Stri...

Proposed resolution

The webhook controller should return 202 status code in order to avoid this problem.

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇩🇪Germany yannickoo Berlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024