Debug a Stripe webhook that failed
To debug a Stripe webhook that failed, start with the endpoint's Event deliveries in Stripe, then compare the exact request your handler choked on with one it handled. HookKeep keeps that raw request: add a HookKeep endpoint as a second Stripe webhook endpoint and every event is kept for 60 days to search, compare and replay. The paid plan costs $9 a month after a 7-day free trial that needs a card, and includes 5 permanent endpoints, 60-day history, 50,000 captured requests a month, 1 MB per request body and 2 GB of storage. You can start free, with no card: 1 endpoint, 1,000 captured requests a month and 7-day history, without replay.
$9 a month. 7-day free trial, card required. Your card is charged $9 when the trial ends, then every month, unless you cancel first. Cancel anytime from Billing in your account.
Try it now
No sign-in and no card. You get a real endpoint for 60 minutes. It and everything sent to it are deleted afterwards.
Then send it a request and watch it appear here.
What Stripe shows you
In Stripe's Workbench, open the webhook endpoint and its Event deliveries tab: each delivery is marked delivered, pending or failed, with the HTTP status your server returned or a time-out. From Stripe's documentation, read on 28 November 2026: in live mode Stripe retries a failed delivery for up to three days with exponential back-off, and in a sandbox three times over a few hours.
The same documentation says the Dashboard's Resend button works for up to 15 days after an event is created, the Stripe CLI's stripe events resend for up to 30 days, and the API lists events going back up to 30 days.
Why Stripe webhooks fail
Signature verification fails because the handler checks a parsed and re-serialised body. Stripe requires the raw body for verification, and a framework that parses the JSON before the check can change the bytes; verify against the body exactly as it arrived.
The handler times out because it does the work before it answers. Stripe recommends returning a 2xx status before any complex logic. The opposite mistake is quieter: answer 2xx and then fail, and Stripe records the delivery as successful and never retries it.
The same event arrives twice. Stripe says an endpoint can occasionally receive an event more than once, so record the event ids you have processed and skip repeats.
Events arrive out of order. Stripe does not guarantee delivery in the order events were created, so a handler that assumes one event has already been handled when the next arrives will sometimes fail. Fetch the current object from Stripe's API instead of relying on the order.
Keep the request that failed
Stripe sends each event to every webhook endpoint subscribed to it. Add a HookKeep endpoint's address alongside your own handler with the same events, and HookKeep keeps every request exactly as it arrived, headers and raw body, for 60 days. It answers each one with a 200 status, so your handler's failures stay visible in Stripe on its own endpoint.
Search for the event id from Stripe's delivery list or your error log to find the request. Compare it field by field with an event of the same type that your handler processed, which usually shows the missing field or the changed shape. Paste its raw body and the signing secret into the signature checker to see whether the bytes verify.
When the handler is fixed, replay the request to your staging server at a public address. A replay keeps the original Stripe-Signature, which was made with the signing secret of the Stripe endpoint pointed at your inbox, so verify with that secret in staging and relax the timestamp tolerance there.
Ask Claude Code or Cursor
Connect HookKeep as an MCP server and your assistant does the digging. "Show today's requests to stripe-live whose signature check failed" calls list_requests, once the endpoint has its signing secret saved. "Find the request with the event id from this error log" calls search_payloads, and "Show it in full" calls get_request.
"Compare that event with the last invoice.paid my handler accepted" calls compare_requests. "Replay it to https://staging.example.com/webhooks/stripe" calls replay_request, then you read the handler's response together and fix the code in the same session.
Questions
Can HookKeep ask Stripe to resend an event?
No. HookKeep has no access to your Stripe account. It replays its own copy of the request; to have Stripe send an event again, use Resend in the Dashboard or stripe events resend in the Stripe CLI.
Will it have events from before I added the endpoint?
No. It keeps what Stripe sends from the moment you add it, so add it before the failure you need to investigate.