Prompt
How do I troubleshoot missing webhook events for email delivery?
Latest observation
Here’s a practical checklist to troubleshoot missing webhook events for email delivery.
1) Confirm the email actually hit the provider
First, verify the email was accepted and processed by your email service.
Check for:
- Message accepted / queued status
- Dropped / suppressed / blocked / bounced events
- Any provider logs or message activity page
If the email never entered the system, no webhook event will be emitted.
2) Verify webhook configuration
Make sure the webhook endpoint is correctly set up:
- Correct URL
- Correct event types selected
- Webhook is enabled
- No stale or duplicate webhook configurations
Also confirm you’re listening for the right event names, such as:
- delivered
- bounced
- deferred
- opened
- clicked
- spam complaint
- unsubscribed
3) Check for delivery failures to your endpoint
Your provider may have tried to send the webhook, but your server didn’t accept it.
Look for:
- 4xx/5xx responses from your endpoint
- Timeouts
- TLS/SSL certificate issues
- DNS or routing problems
- Firewalls, WAFs, or reverse proxies blocking requests
Your endpoint should return a fast 2xx response.
4) Inspect webhook logs and retry history
Most providers keep a log of webhook attempts. Review:
- Timestamp of each attempt
- HTTP status returned
- Request body
- Retry count and backoff schedule
If retries exist, a temporary outage may have caused the event to arrive later or not at all if retry limits were exceeded.
5) Ensure your server isn’t rejecting valid requests
Common causes:
- Signature validation failures due to:
- Wrong signing secret
- Body parsing altering raw payload
- Clock skew
- IP allowlist blocks
- Incorrect content-type handling
- Payload size limits
- JSON schema mismatches
If signature verification is enabled, confirm you are using the raw request body.
6) Check event filtering or suppression rules
You may be unintentionally filtering out events:
- Only handling certain event types
- Ignoring events for test accounts
- Deduplicating too aggressively
- Dropping events for certain domains or recipients
- Suppression lists preventing downstream processing
7) Confirm the event is expected for the email type
Some events are not guaranteed:
- A delivered webhook may not occur if the message is rejected upstream
- Open/click events depend on tracking being enabled and the recipient’s client loading images or links
- Some providers don’t emit every event for every message state
8) Test with a known-good request
Send a test webhook or replay an existing event if the provider supports it.
This helps isolate whether the issue is:
- the provider not sending events
- your endpoint not receiving them
- your app handling them incorrectly
9) Look for queue or processing issues on your side
Even if the webhook is received, your app might not process it:
- Message dropped before reaching worker queue
- Consumer exceptions
- Dead-letter queue buildup
- Database write failures
- Idempotency logic discarding valid events
Check app logs, worker logs, and queue depth.
10) Compare event timing and timezone
Sometimes events are present but appear “missing” because:
- timestamps are in UTC
- dashboard filters use local time
- you’re searching the wrong date range
11) Reproduce with a single controlled email
Send one email to a test mailbox and trace it end-to-end:
- Send email
- Confirm provider message ID
- Check provider event log
- Confirm webhook attempt
- Confirm your endpoint response
- Confirm downstream storage/processing
12) If all else fails, contact provider support
Provide:
- message ID
- recipient email
- sending timestamp
- expected webhook event
- webhook endpoint response codes
- any request IDs from provider logs
Quick triage summary
If a webhook event is missing, ask:
- Did the provider generate the event?
- Did it attempt delivery to my endpoint?
- Did my endpoint return 2xx?
- Did my app process and store it?
If you want, I can also give you a provider-agnostic troubleshooting flowchart or a checklist specific to SendGrid, Mailgun, Postmark, or AWS SES.