#kenehermitcoder

1 messages · Page 1 of 1 (latest)

crude flameBOT
#

Hello! We'll be with you shortly. 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.

quaint crow
#

Hello, can you tell me more about how that method is not functioning as expected?

cloud fern
#

The highlighted section doesn't function as expected.

quaint crow
#

Does your code get to those lines? Or does it error?

#

Also, please send the text of your code, pictures of code are harder to work with

#

The three most common things that go wrong with constructEvent are:

  1. Not passing in the correct webhook endpoint secret
  2. Not passing in the headers properly
  3. Not passing the raw webhook body
#

Let's check #1 and #2 first. Can you print out your sig and endpoint secret parameters to make sure they are populated correctly?

#

The signature should look something like this t=1700490957,v1=50d5752615450831d6e71a98935d1edc23cb62596dd43d367cd5737a3fe9571d,v0=9a98b0ca23215e332bd8336df896926a62f4847cbda5c8603a482e6662745c58

#

And the webhook endpoint secret should start with whsec_

cloud fern
#

Yes, my code doesn't work beyond the selected block.

quaint crow
#

Do you get an error about the webhook signature?

#

If so, my debugging advice will help

cloud fern
#

If they are not populated correctly, what then, is the problem?

quaint crow
#

Either you didn't set them properly or your code didn't retrieve them properly

#

Was one of them not set properly when you checked them?