Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Webhook with no retries loses leads on one error: how to fix

DLV-120High impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

A webhook is an automatic message your form or site sends to another service (Zapier, Make, n8n, a CRM or your own server) when someone submits a lead. Retries mean the sender tries again if the first attempt fails.

Many form plugins, themes and custom scripts send the webhook once, in the same request that handles the submission. If that one call hits a transient error (a short-lived problem such as a timeout, a 502/503 response or a dropped connection), the data is never delivered. The visitor often still sees a success message, and the lead exists nowhere you will look.

One failed call, one lost lead
  1. Visitor submits formThank-you message shown
  2. Webhook fired onceReceiver returns 503 or times out
  3. No retrySender gives up
  4. CRM and inboxLead never arrives

The form fires the webhook once. A brief 503 means the lead never reaches the CRM and is not stored anywhere else.

Why it costs you leads or sales

Outages at automation tools and CRMs are usually short, but a one-shot webhook turns every short blip into a permanent loss. You cannot follow up with someone you never heard about, and the person who asked for a quote usually contacts a competitor within hours.

It is also hard to notice. The form works, the visitor sees success, ad platforms record a conversion, and only the back office is missing the lead. Losses are spread out and look like normal variation.

Leads reaching the CRM during a 10-minute receiver outageExample numbers
Leads reaching the CRM during a 10-minute receiver outage (example)Submitted: 20 leads; Delivered, no retries: 0 leads; Delivered, with retries: 20 leads081520020SubmittedDelivered, no retriesDelivered, with retri…leads

Example: 20 leads submit during a short outage. Without retries all are lost; with retries most arrive once the receiver recovers.

How to check if your site has it

Signs your webhook is one-shot
  • Your form plugin or script has no retry, queue or failed-delivery setting for webhooks
  • Compare form submission counts with CRM lead counts for the same days; the CRM is consistently lower
  • Your sending logs show a 5xx, timeout or connection error with no second attempt to the same URL
  • Nothing is stored on your site when the webhook fails (no entries list, no log)
  • Nobody is alerted when a delivery fails

The quickest test is to point the webhook temporarily at a URL that returns an error, such as a request-catcher you control that responds 503, submit a test lead and watch the logs. If you see one attempt and no retries, you have the issue.

How to fix it

Make delivery survive transient errors
  1. Store every submission first

    Save the lead in your site database or form entries list before calling the webhook. This is your safety net and the source for any replay.

  2. Retry on temporary failures only

    Retry on timeouts, connection errors, 429 and 5xx. Do not retry on most 4xx errors, which mean the request itself is wrong and need a human fix.

  3. Use exponential backoff

    Wait longer between attempts (for example 1 minute, 5 minutes, 30 minutes, 2 hours) so you do not hammer a service that is recovering.

  4. Make the receiver safe to repeat

    Send a unique submission ID so the receiver can ignore a duplicate if a retry arrives after a slow success.

  5. Alert when retries run out

    After the last attempt, keep the lead flagged as failed and send an email or Slack message to a human.

Where to add retries on your platform
  1. Check your form plugin

    Look in the plugin's webhook or integration settings and its logs for a retry or resend option. If it has none, keep entries saved in the plugin and use an action scheduler or queue add-on if your plugin supports one.

  2. Or use wp_remote_post with a scheduled retry

    For custom code, schedule a retry with WP-Cron (see the code example below) when the response is an error.

Node.js: send a webhook with retries and backoffjavascript
async function sendWebhook(url, payload, maxAttempts = 5) {
  const delays = [1000, 5000, 30000, 120000];
  for (let attempt = 1; attempt <= maxAttempts; attempt++) {
    try {
      const res = await fetch(url, {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify(payload),
        signal: AbortSignal.timeout(10000)
      });
      if (res.ok) return true;
      // 4xx (except 429) means the request is wrong: do not retry
      if (res.status < 500 && res.status !== 429) return false;
    } catch (err) {
      // timeout or network error: fall through and retry
    }
    if (attempt < maxAttempts) {
      await new Promise(r => setTimeout(r, delays[attempt - 1] || 120000));
    }
  }
  return false; // mark lead as failed and alert a human
}
WordPress: retry a failed webhook with WP-Cronphp
function send_lead_webhook( $payload, $attempt = 1 ) {
  $res = wp_remote_post( 'https://example.com/hook', array(
    'timeout' => 10,
    'headers' => array( 'Content-Type' => 'application/json' ),
    'body'    => wp_json_encode( $payload ),
  ) );
  $code = is_wp_error( $res ) ? 0 : wp_remote_retrieve_response_code( $res );
  if ( $code >= 200 && $code < 300 ) {
    return;
  }
  if ( $attempt < 5 && ( $code === 0 || $code === 429 || $code >= 500 ) ) {
    $delay = 60 * pow( 3, $attempt ); // 3, 9, 27, 81 minutes
    wp_schedule_single_event( time() + $delay, 'retry_lead_webhook', array( $payload, $attempt + 1 ) );
  } else {
    wp_mail( get_option( 'admin_email' ), 'Lead webhook failed', wp_json_encode( $payload ) );
  }
}
add_action( 'retry_lead_webhook', 'send_lead_webhook', 10, 2 );
Delivery design

One-shot webhook

  • Single attempt during form submit
  • Any 5xx or timeout loses the lead
  • No stored copy, no alert

Stored, retried, alerted

  • Lead saved before sending
  • Retries with backoff on temporary errors
  • Human alerted if all attempts fail

How to confirm it's fixed

Prove a failure now recovers
  1. Break the receiver on purpose

    On staging, point the webhook at an endpoint that returns 503, or turn the receiving zap, scenario or workflow off briefly.

  2. Submit a marked test lead

    Use an obvious test name and email.

  3. Check the lead is stored and retrying

    You should see the saved entry and scheduled retry attempts in your logs.

  4. Restore the receiver

    The next retry should deliver the lead once, with no duplicate in the CRM.

  5. Test the alert

    Leave the receiver broken until attempts run out and confirm a human gets notified.

How to prevent it happening again

Prevention checklist
  • Store every submission before any webhook is sent
  • Retry temporary errors with backoff and a sensible cap
  • Include a unique submission ID and dedupe on the receiver
  • Alert a named person when a lead fails permanently
  • Reconcile form entries against CRM leads weekly
  • Re-test after plugin, theme or automation changes
How one blip becomes a lost lead
  1. 10:02

    Example: visitor submits the form and sees a thank-you message

  2. 10:02

    Webhook call gets a 503 from the receiver

  3. 10:02

    No retry is scheduled and nothing is stored

  4. 10:09

    Receiver recovers; the lead is not replayed

  5. Next week

    Counts do not match and nobody knows why

How FunnelGuard handles this

FunnelGuard does not check this yet. Whether a webhook has a retry policy is a possible future check, but today it is not something FunnelGuard tests.

What FunnelGuard does do nearby: a robot visitor runs your real lead journey on a schedule, submits a marked test lead, and checks whether it reaches your inbox and CRM. If a test lead does not arrive, for example because of an outage at that moment, a failure is re-checked from a second region before one alert goes out with a screenshot and a likely cause. That shows delivery problems on the paths it tests, but it does not tell you whether your webhook would retry.

To watch for this yourself, compare form entries with CRM leads every week, read the failed-delivery logs of your form plugin or automation tool, and run the staging test in this guide after any change. The Free plan (1 site, 2 journeys, daily checks, no card) is enough to monitor one lead journey end to end.

Questions people ask

Why did my webhook lead never reach my CRM?

Often the webhook was sent once and the receiver was briefly down, slow or returned a 5xx error. With no retry and no stored copy, the lead is lost. Check your form entries, the sender's delivery log and the receiver's run history for the same time.

Do webhooks retry automatically?

It depends on the sender. Some platforms, such as Shopify for its own webhooks, retry failed deliveries. Many form plugins and custom scripts send once and never retry, so check the documentation or test with an endpoint that returns an error.

How do I add retries to a form webhook?

Save each submission first, then send the webhook from a queue or scheduled job. Retry on timeouts, 429 and 5xx responses with increasing delays, and alert someone when the final attempt fails.

Which webhook errors should be retried?

Retry temporary problems: timeouts, connection errors, 429 rate limits and 5xx server errors. Do not keep retrying most 4xx errors, because the request is wrong and will keep failing until someone fixes it.

Can retries create duplicate leads?

Yes, if a slow request succeeded but the sender did not see the answer. Send a unique submission ID with each lead and have the receiver ignore IDs it has already processed.

How can I recover leads lost to a failed webhook?

Look in your form plugin's stored entries, your site's email notifications or the platform's submissions area, and compare them with the CRM. Resend any missing ones manually or with a replay feature in your automation tool.

Does FunnelGuard detect missing webhook retries?

No, not yet. It is a possible future check. FunnelGuard does run test leads through your real form journey and checks whether they reach your inbox and CRM, which can reveal delivery failures on the tested path.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.