Skip to main content

Webhook deliveries failing

A webhook endpoint stops receiving events: the retry schedule, the automatic circuit breaker that pauses a failing consumer, and how deliveries recover.

A registered webhook endpoint has stopped receiving some or all outbound events. Open its delivery history: its shape shows whether attempts keep failing, stopped behind an open circuit breaker, or succeeded while your consumer disagrees. This runbook covers outbound webhook delivery from a DALP instance (inbound compliance provider webhooks use separate screens).

Open Organisation settings → Webhooks, select the endpoint, and open the Event deliveries tab. Selecting any row opens the delivery sheet with the failure class, signed request headers, consumer response and a copyable repro command. You can also inspect the same history from the CLI or webhook management endpoints:

dalp get webhooks deliveries <webhookId>

Breaker state, Reactivate, replay and address policy sit on the DALP side. DNS, TLS, response codes, signing secrets and receipts sit on the consumer side, so share the failure class with the consumer owner.

Symptoms

  • A registered webhook endpoint stops receiving events it previously received.
  • Deliveries to one endpoint fail while sibling endpoints on the same instance succeed.
  • The endpoint status in Console flips to “Auto-disabled” without manual action.
  • Your consumer reports a gap of missing events followed by a burst, or permanent loss.

Checks

Read the delivery history first. Its shape tells you which check to start with.

The delivery history's shape picks the check to run.Start with the Event deliveries tab, which lists one row per event with its attempts, each with its failure class and the consumer's response. Three shapes follow. Failing rows that keep appearing split on the failure class: a retryable class such as DNS, TLS, a timeout, or a 5xx keeps retrying for three days, so fix reachability under check 3. A terminal 4xx is permanent for that one event, handled under check 4. No new rows at all means the circuit breaker is open: go to check 2. Rows that show delivered while your consumer disagrees point at receipt deadlines and duplicate handling under check 5.The delivery history's shape picks the check to run.The same decision tree as the desktop variant, drawn portrait, with the same three top-level shapes. Failing rows that keep appearing split further on the failure class: a retryable class such as DNS, TLS, a timeout, or a 5xx keeps retrying for three days, so fix reachability under check 3. A terminal 4xx is permanent for that event, handled under check 4. No new rows at all means the breaker is open, go to check 2. Delivered rows the consumer disputes point at receipt deadlines or duplicates, go to check 5.

The delivery history sorts a failing endpoint into three shapes: attempts that keep failing, attempts that stopped, and deliveries the consumer disputes.

  1. Confirm whether failures are transient or sustained. Inspect the Event deliveries tab (or dalp get webhooks deliveries <webhookId>). Healthy endpoints show mostly delivered rows with occasional retried rows.

    Failed attempts retry automatically with jittered exponential backoff starting near 30 seconds, each attempt timing out after 20 seconds, and stop 3 days after DALP recorded the event. Ordinary 4xx responses (other than request timeout or rate-limit responses) are terminal for that event and never retry, so fixing the consumer afterwards recovers only future events.

  2. Check whether the circuit breaker stopped deliveries. Inspect the Breaker field under Endpoint details on the Overview tab. “Closed, deliveries flowing” means deliveries run normally. “Open, deliveries paused” (status “Auto-disabled”) means the breaker tripped and DALP skips new deliveries.

    • Tripping: 30 consecutive failed deliveries trip the breaker (missed receipt deadlines count, manual test events do not). Events raised while the breaker is open are not queued for the endpoint and cannot be replayed later.
    • Automatic recovery: DALP probes an open endpoint with its latest live event at most once a minute (10-second timeout). Two consecutive probe successes move the endpoint to “Recovering” and resume live deliveries, and the next delivered event returns it to “Enabled”.
    • The Recovering trap: Entering “Recovering” keeps the previous failure streak intact, so a single failed live delivery immediately reopens the breaker.
  3. Verify consumer reachability and address policy. Read the failure class in the Last response column (2xx = delivered). You can test DNS, TLS and connectivity from a debug pod or operator host with:

    curl -svI --max-time 10 "https://<consumer-host>/<webhook-path>"
    • Network and 5xx failures (DNS, TLS, connect failure, incomplete response, unparseable response or 5xx) retry automatically on the normal schedule once the consumer recovers.
    • Policy refusal (TARGET_REFUSED): DALP requires https:// and a publicly routable IP at registration and before every dispatch. Private targets fail with TARGET_REFUSED (and never retry) unless the operator adds their CIDR to global.dalpApp.config.webhooks.allowedTargetCidrs (HTTPS still mandatory) or lists an exact scheme+host+port origin in DALP_WEBHOOKS_TRUSTED_DESTINATIONS (skips HTTPS and public-IP checks across all organisations). Never list a DALP origin or private internal service in DALP_WEBHOOKS_TRUSTED_DESTINATIONS, because webhook managers can read responses in the delivery history. After fixing the URL or deployment policy, use Resend per affected event.
  4. Verify the signing secret on terminal 4xx failures. A burst of terminal 4xx rows starting after a secret change indicates signature rejection. After rotation, the previous secret remains active for 24 hours (dual-signed) and retried events are re-signed with a fresh timestamp. Check consumer clock skew and signing secret configuration, then replay the failed events under Actions.

  5. Check counter-signed receipt deadlines. If the endpoint requires receipts, confirm the consumer responds within its receipt window (default 30 seconds, configurable from 1 to 60 seconds via Edit → Receipt timeout or receiptTimeoutSeconds). Late receipts retry like ordinary failures. Invalid signatures leave the attempt open inside the window, whereas a valid signature with a mismatched body hash fails the event terminally until a corrected receipt arrives for that delivery.

The circuit breaker recovers automatically, and one failed delivery during recovery reopens it at once.A healthy endpoint delivers normally while individual failures retry on the backoff curve. Thirty consecutive failed deliveries trip the breaker, and test events never count. While the breaker is open the platform skips deliveries to the endpoint rather than attempting them, and Console shows the endpoint as Auto-disabled. Test events still deliver and change nothing. The platform probes the open endpoint automatically by re-sending its most recent live event, each probe at least a minute apart with ten seconds to answer, and a failed probe resets the success count. Two consecutive probe successes move the endpoint to Recovering, where live deliveries resume immediately, and from there two things can happen. The failure count that tripped the breaker carries over unchanged: one failed live delivery while Recovering reopens the breaker at once, looping back to Open before a second probe or a delivered event ever gets the chance. Only if a live delivery succeeds first does the endpoint return to Enabled, with the failure streak reset to zero. A manual shortcut exists: the Reactivate action on the endpoint's Overview tab re-enables the endpoint and closes the breaker at once.The circuit breaker recovers automatically, and one failed delivery during recovery reopens it at once.The same lifecycle as the desktop variant, drawn portrait. Thirty consecutive failed deliveries trip the breaker, with test events never counting. While open, deliveries are skipped and Console shows Auto-disabled, though test events still deliver. Automatic probes re-send the latest live event at least a minute apart, and a failed probe resets the count. Two consecutive successes move the endpoint to Recovering, where live deliveries resume, and from there two things can happen. The failure count that tripped the breaker carries over: one failed live delivery there reopens the breaker at once, looping back to Open. Only a live delivery that succeeds first closes the breaker fully. Reactivate on the Overview tab closes it at once.

The breaker trips after 30 consecutive failed deliveries, recovers through probes, and reopens at once if one live delivery fails while Recovering.

Actions

  • Circuit breaker tripped: Fix the consumer reachability or response issue first, then verify with Send test event (test events deliver even while the breaker is open and never change breaker state). Automatic probing takes at least two minutes, and longer after a failed probe. To avoid missing events in that time, select Reactivate (or Reactivate and replay failed events) on the Overview tab, or Enable from the endpoint actions menu, to close the breaker immediately.
  • Events aged past 3 days or failed terminally: Re-enable the endpoint first (replays are refused while disabled or breaker-open), then call the webhook replay endpoint for one event ID or a block range. Because events raised while the breaker was open were never recorded for the endpoint, reconcile that gap directly from the Platform API.
  • Signature verification failed: Update the consumer's signing secret, then replay the terminally failed events with the replay and retry calls. No DALP-side change is needed.
  • Duplicate deliveries at the consumer: Retries within the 3-day window reuse the same webhook-id header, so deduplicate retries on webhook-id. Replays mint a fresh webhook-id and set is_replay: true, so deduplicate replays using stable domain identifiers inside the event payload.

Verify recovery

New events show as delivered on Event deliveries, the Breaker field reads “Closed, deliveries flowing”, and replayed events arrive with is_replay: true.

Escalate

Escalate to your DALP support contact with the endpoint id, the failure window, whether the breaker had tripped, and the failure class shown in the delivery history. That field distinguishes a consumer-side outage from a platform delivery defect. A name that never resolved points at DNS or egress, a terminal 4xx points at the consumer's validation, and a run of timeouts points at the consumer's capacity.

Frequently asked questions

Does the 3-day retry window keep counting while the breaker is open?

Yes. The window is measured from when the platform recorded the event, and it does not pause while the breaker skips deliveries. A consumer that stays broken for days can therefore age events out without a single further attempt appearing in the history. After a long outage, replay the events that aged out before the breaker tripped, and reconcile from the API the window the breaker was open, which no replay covers.

What happens to a delivery when the platform's own database fails part-way through it?

The attempt pauses and retries later, starting about 1 minute after the failure and doubling up to 6 hours. Later events for the same endpoint wait behind it to preserve ordering, and each rerun re-signs the payload with a fresh timestamp.

If the first POST already reached your consumer before the database failed, the rerun can deliver a duplicate. Deduplicate on the webhook-id header as with any retry.

If the attempt still fails after ten reruns, about eight and a half hours after the first, or cannot be completed at all, the platform marks that event as failed with the reason attempt_workflow_died and logs the error. The endpoint's later events then keep flowing. Replay the failed event with the webhook replay call.

Does rotating the signing secret break deliveries already in flight?

No, provided the consumer finishes its switch inside the 24-hour overlap described in check 4. After the overlap ends, the old secret stops signing, and a consumer still pinned to it starts rejecting deliveries as terminal 4xx failures, the same signature scenario check 4 covers.