Skip to Content
BlogStripe signature error

Stripe “No signatures found matching the expected signature for payload”: why it happens

Why your webhook signature check fails (and it’s usually not the secret you think)

Ray Garcia
Ray Garcia
Published November 28, 2026

Stripe’s “No signatures found matching the expected signature for payload” means at least one of the three things you passed to the verify call is wrong: the raw request body, the Stripe-Signature header, or the endpoint’s signing secret (Stripe’s docs ). The usual causes are a framework parsing or reformatting the body before you verify it, and using the wrong whsec_ secret, for example the one stripe listen printed instead of the Dashboard endpoint’s. Verify against the exact bytes Stripe sent, with the secret for that endpoint.

If you need the general method for any sender, start with how to verify a webhook signature. This post is about the Stripe error.

The error

You deploy a Stripe webhook handler, the first real event arrives, and the log says:

Webhook signature verification failed. Err: No signatures found matching the expected signature for payload.

stripe-node adds a hint in the same message: “Are you passing the raw request body you received from Stripe?” (stripe-node ). That hint is right more often than not.

What Stripe actually signs

Stripe’s verify call takes three things: the raw request body, the Stripe-Signature header, and your endpoint’s signing secret. Stripe’s docs say that if you see this error, “at least one of the three parameters you passed is incorrect” (Stripe ).

The v1 signature is an HMAC with SHA-256 over the timestamp, a ., and the payload exactly as sent, keyed with that endpoint’s secret (Stripe ). Change one byte of the body, and the signature you compute no longer matches.

Cause 1: the body changed before you verified it

Stripe’s docs: some frameworks “parse or mutate the request body before your code sees it — by reordering keys, stripping whitespace, converting to JSON, or changing encoding — which causes signature verification to fail” (Stripe ).

The classic Express version is app.use(express.json()) running before the webhook route. Stripe’s fix is to register the webhook route before the JSON middleware (Stripe ):

// Illustrative, following Stripe's Express guidance (S1) and stripe-node's Express example (S4). // The webhook route gets the raw body and comes before express.json(). app.post('/webhook', express.raw({ type: 'application/json' }), (req, res) => { const event = stripe.webhooks.constructEvent( req.body, // Buffer: the exact bytes Stripe sent req.headers['stripe-signature'], process.env.STRIPE_WEBHOOK_SECRET // this endpoint's whsec_ secret ) // ...handle event... res.sendStatus(200) }) app.use(express.json()) // everything else

For Next.js Pages Router, Stripe’s docs say to disable bodyParser and read the raw buffer; App Router and AWS API Gateway each have their own raw-body recipe in the same docs (Stripe ).

Anything that forwards Stripe’s request counts too. stripe-node’s message adds: “If a webhook request is being forwarded by a third-party tool, ensure that the exact request body, including JSON formatting and new line style, is preserved” (stripe-node ).

Cause 2: the wrong secret

Stripe calls this “the most common cause” (Stripe ). Things to check:

  • CLI vs Dashboard. The secret stripe listen prints is different from the Dashboard endpoint’s secret. It works locally, then fails in production (Stripe ).
  • One secret per endpoint, and per mode. Stripe generates a unique secret for each endpoint, and it differs between test and live (Stripe ).
  • Whitespace. Print the secret your code actually uses; a trailing newline from an env file is enough to break it. stripe-node warns when the secret contains whitespace (Stripe , stripe-node ).
  • A rolled secret. When you roll a secret, the old one can stay active for up to 7 days and Stripe signs with each active secret; verify against at least one v1 entry (Stripe ).

Cause 3: the header isn’t what you think

Print the Stripe-Signature value. It should contain t= and at least one v1= entry; Stripe may add optional debug entries, and your code must accept entries it doesn’t recognize, in any order (Stripe ). If t or v1 is missing, your code is reading the wrong header or mangling it.

Not this error: an old timestamp

If the signature matches but the timestamp is too old, stripe-node throws a different error, “Timestamp outside the tolerance zone” (stripe-node ). The libraries’ default tolerance is 5 minutes; keep your server clock synced, and don’t set the tolerance to 0, which disables the check (Stripe ).

How to find which one it is

  1. Log the secret’s first and last few characters and its length, and compare them with the Dashboard (or stripe listen) value.
  2. Log the header and confirm t and v1 are there.
  3. Check the body: some deliveries include a payload debug entry in the header with the end of the SHA-256 of the exact body Stripe sent. Hash what your code received and compare (Stripe ). Don’t use the debug entries to authenticate anything; only a valid v1 does that (Stripe ).

Where Slashbin fits

If Stripe sends to Slashbin instead of straight to your app, the signature is checked at the gateway, before your model or any destination sees the event, so there’s no Stripe verification code of yours to get wrong. Stripe is one of the supported signature sources; see the supported providers and scheme limits. What your endpoint then receives is a JSON body from Slashbin, with the mapped record under payload (reshaped for that destination if you’ve set up a Third-Party Model). That body isn’t what Stripe signed, so don’t run Stripe’s check on it. If the event did nothing after it passed verification, Why did my Stripe webhook do nothing? walks through the delivery log.

FAQ

Why does verification work with stripe listen but fail in production? The secret stripe listen prints is different from your Dashboard endpoint’s secret. Use the one for the endpoint that received the event.

Can an old timestamp cause “No signatures found matching the expected signature”? No. In stripe-node, a matching signature with a timestamp outside the tolerance (5 minutes by default) raises “Timestamp outside the tolerance zone” instead.

Can I use the secret or payload entries in the header to verify the request? No. They’re unsigned debugging metadata. Only a valid v1 signature authenticates the request.