Prompt

Troubleshoot webhook failures in production for external integrations

Technology / API Platforms2 observationsLast seen Nov 26, 2026

Latest observation

Nov 26, 2026OpenAI APIWeb search: off

Here’s a practical runbook to troubleshoot webhook failures in production for external integrations.

1) Confirm the failure mode

Start by identifying what kind of failure is happening:

  • No webhook received
  • Webhook received but rejected
  • Webhook received but processing failed
  • Webhook received multiple times
  • Delayed delivery
  • Intermittent failures

Check:

  • delivery logs
  • retry history
  • error rates
  • latency
  • provider status page
  • your own incident timeline

2) Verify the webhook was actually sent

From the sender side, confirm:

  • event was emitted
  • webhook job/queue ran
  • request was attempted
  • target URL was correct
  • environment matches production
  • secret/config is correct
  • retries are enabled

Look for:

  • 2xx / 4xx / 5xx response codes
  • timeout errors
  • DNS errors
  • TLS/SSL failures
  • connection refused
  • payload serialization errors

3) Check the receiver endpoint

On your receiving service, verify:

  • the endpoint is live
  • DNS resolves correctly
  • load balancer / ingress routes traffic properly
  • firewall / WAF is not blocking the sender
  • IP allowlists are current
  • HTTPS certificate is valid and trusted
  • request size limits aren’t being exceeded
  • endpoint path and method are correct

Common production issues:

  • wrong URL in prod config
  • expired cert
  • WAF blocking unknown user agents
  • reverse proxy stripping headers
  • endpoint only accessible internally
  • rate limits triggered

4) Inspect response codes

Use the HTTP response to narrow down the issue:

2xx

Sender should treat as success. If it still retries:

  • check if response is delayed
  • check if sender requires exact status code range
  • verify proxy altering response

3xx

Often treated as failure by webhook providers.

  • avoid redirects
  • ensure the exact final URL is configured

4xx

Usually means request or auth problem:

  • invalid signature
  • missing headers
  • bad payload format
  • expired timestamp
  • unauthorized token
  • unsupported content type

5xx

Receiver is failing:

  • app error
  • dependency outage
  • DB failure
  • queue backlog
  • timeout in processing

5) Validate authentication and signature checks

For signed webhooks, verify:

  • shared secret is correct in production
  • signature header name matches provider docs
  • HMAC algorithm is correct
  • request body is used exactly as received
  • timestamp tolerance isn’t too strict
  • body parsing isn’t modifying raw payload before verification

Common mistake:

  • verifying against a parsed JSON object instead of the raw request body.

6) Check payload and schema compatibility

Confirm the payload matches what your app expects:

  • required fields present
  • enum values unchanged
  • nested objects not null unexpectedly
  • new fields don’t break strict parsers
  • version mismatch between sender and receiver

Things to look for:

  • field renamed by provider
  • array vs object mismatch
  • timestamp format changed
  • encoding issues
  • Unicode / special characters
  • large payload truncation

7) Review retries and idempotency

Webhook providers often retry on failures. Make sure:

  • retries are expected
  • duplicate deliveries are handled safely
  • event IDs are deduplicated
  • processing is idempotent
  • side effects don’t happen twice

If duplicates appear:

  • check whether your app returned non-2xx after partially processing
  • check timeout behavior
  • check whether retries and manual resends overlap

8) Check timeouts and processing time

If your handler is slow, the sender may retry even if you eventually finish processing.

Best practices:

  • acknowledge quickly
  • offload heavy work to a queue
  • keep webhook handler lightweight
  • monitor p95/p99 latency
  • watch for downstream slowness

If timeouts are happening:

  • measure request duration
  • inspect DB/API dependencies
  • check CPU/memory saturation
  • examine GC or thread pool exhaustion

9) Compare production vs staging

Many webhook issues happen only in prod because of configuration differences:

  • different secret
  • different URL
  • different TLS cert
  • different WAF rules
  • different payload volume
  • stricter rate limits
  • different dependency endpoints
  • prod-only feature flags

Create a diff:

  • environment variables
  • ingress rules
  • app config
  • provider-side webhook config
  • secrets management entries

10) Correlate with logs and traces

Use correlation IDs if available:

  • webhook delivery ID
  • event ID
  • request ID
  • trace ID

Search:

  • sender logs
  • receiver access logs
  • app logs
  • proxy/load balancer logs
  • APM traces
  • queue metrics

Useful to capture:

  • timestamp
  • source IP
  • user agent
  • headers
  • payload hash
  • status code
  • latency
  • retry count

11) Check for infrastructure blocks

Possible blockers in production:

  • DNS failures
  • expired certificate
  • network ACL changes
  • security group changes
  • WAF rules
  • CDN caching issues
  • proxy authentication
  • geo/IP filtering
  • egress restrictions from sender side

12) Reproduce safely

Try replaying a known failing webhook:

  • from provider replay tool, if available
  • with a captured request in a lower environment
  • with curl/Postman using the same headers and body
  • using the same raw payload and signature

Make sure not to:

  • replay production events into a non-idempotent endpoint without safeguards
  • test with modified body if signature verification is involved

13) If the issue is on the sender side

Possible sender-side causes:

  • webhook disabled
  • event subscription misconfigured
  • dead-letter queue buildup
  • job worker outage
  • queue backlog
  • invalid URL
  • provider account limits
  • secret rotation mismatch

Ask the provider:

  • delivery timestamp
  • exact request/response
  • retry policy
  • error reason
  • whether the request left their system

14) Immediate mitigation steps

If production impact is high:

  • temporarily disable retries if causing flood
  • increase handler capacity
  • whitelist sender IPs if safe
  • relax overly strict signature window
  • roll back recent config/deploy changes
  • switch to queue-based async processing
  • pause non-critical event types
  • use manual replay after fix

15) Prevent future failures

Add safeguards:

  • structured webhook logs
  • alerts on non-2xx rates
  • alert on missing events
  • dead-letter queue
  • idempotency keys
  • payload schema validation
  • synthetic webhook probes
  • documented replay procedure
  • dashboard for latency, failures, retries, duplicates

Quick triage checklist

  1. Is the sender actually sending?
  2. Is the receiver endpoint reachable?
  3. What HTTP status is returned?
  4. Is auth/signature verification failing?
  5. Did payload shape change?
  6. Is the handler timing out?
  7. Are retries/deduplication working?
  8. Any prod-only infra differences?
  9. Any recent deploy/config changes?
  10. Can you replay one failed event?

If you want, I can turn this into:

  • a step-by-step incident runbook
  • a debug checklist for engineers
  • or a webhook troubleshooting flowchart.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (2 observations for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.