#anna-cole_error

1 messages ¡ Page 1 of 1 (latest)

mental spadeBOT
#

👋 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/1308217412650537061

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

last thorn
#

Hello! That error usually means you're either using the wrong webhook secret or you're not passing the raw, unaltered, unparsed HTTP body to the construct event function.

blazing aurora
#

I'm using a testing webhook secret. Is that ok? Because I'm still testing.

#

The body I'm passing to the construct event function needs to be unparsed? Maybe that is the problem.

last thorn
#

Yeah, it needs to be 100% raw and unaltered. If anything is changed, even whitespace, the signature verification process will fail.

blazing aurora
#

But regarding the webhook secret , I believe it's ok to use a testing webhook secret, right?

#

Or that will cause the error I am getting?

#

I am using this webhook secret in the "reveal" (circled in red). Is that correct?

#

I am not using the other key (the one on the right where I placed the arrow), is that ok?

last thorn
#

A test webhook secret is fine, and if you're in test mode that's the only one which will work.

#

The arrow is pointing to the Webhook Endpoint ID. Tha'ts not a secret.