Digital Anumati
Answeredwebhooks

Webhook signature verification failing intermittently

Asked 2 Sept 2026410 viewsby Rohan Mehta
Score
12
Vote1 reply
About 5% of webhook deliveries fail signature verification on our side. We use the shared secret straight from the dashboard. Timing? Retries? Encoding?
12votes1answers410views
You

No comments yet

Be the first to share your thoughts.

1 Answer

Resolved
22
Accepted Answer
Almost always encoding. Sign the *raw* request body (bytes), not the parsed JSON. If your framework re-serializes the body before your handler sees it, whitespace/key-order changes will break the signature.
You
  • Rohan Mehta
    Rohan Mehta

    This was exactly it — Express was reparsing the body. Fixed by reading `rawBody`. Thanks!

    25d ago

Your Answer

0 characters