Skip to content

Retries and switch-off

A delivery succeeds when your server answers with a 2xx status within 10 seconds. Anything else is a failure, and what happens next depends on the answer:

Your server… Sabiwave…
answers 2xx in time marks it Delivered
answers 429 or any 5xx tries again, on the schedule below
takes longer than 10 seconds, or can’t be reached tries again, on the schedule below
answers any other 4xx, or a redirect marks it Failed and doesn’t try again: your server refused it

After the first attempt fails, Sabiwave tries again after:

Attempt Waits after the one before
2 1 minute
3 5 minutes
4 30 minutes
5 2 hours
6 6 hours
7 24 hours

Retries are picked up once a minute, so each can come up to a minute late. If the seventh attempt fails, about 32½ hours after the first, the delivery is marked Gave up.

Each retry is the same delivery: the same X-Sabiwave-Delivery and the same body, with a fresh signature.

The Delivery log in Settings › Developer lists every delivery, with what your server answered. Open one and press Send again to resend it now, whatever its status, even one Sabiwave gave up on. Filter the log by endpoint or status to find what you missed.

An endpoint that fails 20 times in a row is switched off, so a broken address stops taking deliveries for every event. Every failed attempt counts, retries included; one success starts the count again. Everyone who manages API keys and webhooks gets an email and a notice in Sabiwave.

While an endpoint is off:

  • nothing is sent to it but the test pings you send;
  • deliveries still waiting for a retry stop, and show as Failed;
  • events that happen aren’t sent to it, and aren’t kept for it.

To bring it back, fix what the log shows your server answered, press Send a test ping to check it, then press Switch on. Its count of failures starts again.

You can also switch an endpoint off yourself, from the endpoint’s own page, for maintenance. Nothing is sent to it, apart from test pings, until you switch it on again.