#cninicu

1 messages · Page 1 of 1 (latest)

novel basinBOT
eternal warren
#

Hi there!

#

Getting a SignatureVerificationError is quite common. It usually comes from two potential errors:

  • You are using the wrong webhook secret. So please double check you are using the correct one. It should look like whsec_xxx and match the one displayed in your dashboard
  • The payload you pass in the constructEvent function is not the raw payload.
#

So can you try to console.log the request.body and the webhookSecert (but don't paste the webhook secret in the channel)?

vast beacon
#

Hey, thanks for heads up! Actually the webhook secret didn't match the one from the dashboard.
It fixed my issue. I was focusing on why the payload is not accepted since the error told me the payload isn't in its raw form, didn't think any second that the secret might be outdated.

Thanks again!

eternal warren
#

Happy to help 🙂