#j_webhook-signature-verification

1 messages ยท Page 1 of 1 (latest)

young ospreyBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1264979352429395969

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

glass cloudBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

novel hearth
fringe pendant
#

Hi!

#

I am searching why i got this following issue:

โŒ Error message: No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe?
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.
Learn more about webhook signing and explore webhook integration examples for various frameworks at https://github.com/stripe/stripe-node#webhook-signing

GitHub

Node.js library for the Stripe API. . Contribute to stripe/stripe-node development by creating an account on GitHub.

#

I dont know what is going on

novel hearth
#

What have you tried?

fringe pendant
#

try different webhook secrets on dev and production, weird because 1 week ago everything was working fine, i didnt do anything or modified and suddendly this error started to happen

novel hearth
#

Okay so

  1. How have you been verifying webhooks in dev? Do you the CLI or do you have test webhook endpoints?
  2. Has anything changed in your hosting environment? Anything that modifies the HTTP requests can cause verification to fail.
fringe pendant
#

Ok let me try one thing

#

weird, since i still process the db interactions, and the payment register correctly, but still got this errorr

#

Can i share how im using webhook config on my backend?

#

express

novel hearth
fringe pendant
#

Well everything works fine on my local testing

#

No errors on the console

novel hearth
#

What does that mean?

fringe pendant
#

but on production on gives me that issue

novel hearth
#

I would expect local and production to be completely different

#

It looks like you are using the CLI locally. That will. have a different webhook signing secret

fringe pendant
#

I know

#

Im using the correct one on production

novel hearth
#

Have you logged that in your code?

fringe pendant
#

Ok let me do some more testing, please dont leave

#

I think i got it

#

๐Ÿ™‚

#

Just one more think

#

Thing

#

I notice that when i make a payment on production, my local terminal also updates

#

Can i send videos on here?

novel hearth
#

I don't think it would help

fringe pendant
#

Its normal this behavior?

novel hearth
#

I notice that when i make a payment on production, my local terminal also updates
You mean the CLI?

fringe pendant
#

i am using liste-forward to activate webhook from local testing

novel hearth
#

The Stripe CLI will forward all webhook events from your account to your local dev endpoint

fringe pendant
#

Hmm, doesnt matter they use different webhook key?

novel hearth
#

Webhook keys have nothing to do with it

fringe pendant
#

Ok, so its normal behavior

novel hearth
#

Yes

fringe pendant
#

Thanks

#

Sorry to bother you

novel hearth
#

No problem, it's why we're here