webhook_ping_failed (400)
Registering a webhook endpoint sends it a signed ping, which must be answered with a 2xx
within 10 seconds. It wasn't, so the endpoint was not saved. result says what happened:
result |
Meaning |
|---|---|
http_status |
Your server answered with the status in statusCode, which isn't a 2xx |
timeout |
No answer within 10 seconds |
tls_failed |
The TLS certificate did not verify for the URL's host name |
connection_failed |
The host name did not resolve, or no connection could be made |
redirect_not_followed |
Your server answered with a redirect (statusCode). Redirects are never followed |
Nothing your server sent back is kept or shown: only the status code.
Fix: make the URL answer a POST with a 2xx, at exactly that address, then register again.
- Deploy the endpoint before you register it.
- Answer every
pingwith a 2xx, whether or not its signature verifies. A ping is a request whoseApiData-Event-Typeheader isping. The registration ping is signed with a secret you receive only in the answer, and a second endpoint's ping is signed with its own new secret, not with one you already hold. An endpoint that answers400to a ping it can't verify fails registration withresult: http_statusandstatusCode: 400(registration). - Until the secret is stored, answer every other request
503, never a 2xx: a notice answered 2xx is not sent again. - A redirect from
httptohttps, to awww.name or to a trailing slash counts as a failure. Register the final URL. - Use a certificate from a public authority, with its full chain, valid for the host name.