#budinov

1 messages · Page 1 of 1 (latest)

deep cloakBOT
tight sedge
#

Yeah we can help with that in here

#

Has this ever worked, or are you building your integration right now and it's not working?

green portal
#

great 🙂
i'm building it right now

#

it has never worked

tight sedge
#

Ok. Can you share your code for the webhook endpoint?

green portal
#

yes, is pastebin ok ?

#

when I call constructEvent on line 33 it goes into the catch

#

I checked multiple time my webhook secret, the header and so on but i cant find the bug

tight sedge
#

So are you testing this locally?

green portal
#

on a test server of mine

tight sedge
#

Ok I gotcha. So you're using the endpoint secret from the test dashboard?

green portal
#

yes

tight sedge
#

Ok ok makes sense

#

Can you share an event id where you're getting the above error?

green portal
#

sure

#

"id": "evt_1Ng7HhIoheMXsmWOzttDlGtI",

#

that's what you mean, right?

tight sedge
#

Yeah

#

I see you have two endpoints registered

#

Can you confirm you're using the secret that ends in QaNX

green portal
#

hm no, i'm using the one that ens in Ls3Vm

tight sedge
#

Yeah that's incorrect then

#

That event is attempting to be delivered to we_1NfMurIoheMXsmWOCWnLs3Vm

green portal
#

i cant even find the one ending in QaNX

tight sedge
#

Whose secret ends in QaNX

#

It's a different webhook endpoint

#

Go to your test dashboard

green portal
#

actually I think just realized that im using the webhook ID

#

for the secret

#

can you tell me where can i find the webhook secret please ?

tight sedge
#

Click the endpoint in the dashboard

#

There should be a button to reveal the secret

green portal
#

you are a saviour

tight sedge
#

Haha happy I could help