FG
๐Ÿ”Œ APIs & SDKsStripe

NextJS - Error: construction of webhook event returned an error: No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe? https://github.com/stripe/stripe-node#webhook-signing

Freshover 4 years ago
Mar 14, 20260 views
Confidence Score80%
80%

Problem

Hi I am pulling my hair out trying to pass raw JSON to NextJS 12 endpoint. I have tried sooo many solutions and I just cant get it to work. Please help as I have wasted half a day on this and I am at a loss. Create test webhook in stripe and passing in Secret Signing key from webhook test dashboard "whsec ..." I get a signature from the test webhook I trigger in the dashboard but I am constantly getting: Error: construction of webhook event returned an error: No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe? https://github.com/stripe/stripe-node#webhook-signing The code below is from Reddit, where some had a similar issue. I have tried all of these solutions here: https://github.com/vercel/next.js/discussions/13405 Seems to be an issue in a lot of forums. Please help. Exhausted! [code block]

Error Output

Error: construction of webhook event returned an error: No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe? https://github.com/stri

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
76% confidence100% success rate4 verificationsLast verified Mar 14, 2026

Solution: NextJS - Error: construction of webhook event returned an error: No signatures found matching the expected signature for payload. Are you passing the raw request body you received

Low Risk

Thanks to the Stripe team, who pointed me to some code, this worked for me: [code block]

76

Trust Score

4 verifications

100% success
  1. 1

    Thanks to the Stripe team, who pointed me to some code, this worked for me:

    Thanks to the Stripe team, who pointed me to some code, this worked for me:

Validation

Resolved in stripe/stripe-node GitHub issue #1294. Community reactions: 7 upvotes.

Verification Summary

Worked: 4
Partial: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

stripepaymentsapi