Webhooks Issue - Not Receiving Real Events

Ohh yeah that’s what I figured, therefore, I added the stream.online and stream.offline on my subscription and tried going live but yeah my endpoint still didn’t receive any.

Yup just found this a while ago, and it’s current status is webhook_callback_verification_failed and I’m assuming because I’m not returning the correct challenge.

here are the things that I tried

const bodyObject = JSON.parse(event.body);
return {
    body: bodyObject.challenge,
};
return bodyObject.challenge

While checking the docs, I think this is the part that I’m missing as I don’t understand what it means

the response body must contain the raw challenge value, and you must set the Content-Type response header to the length of the challenge value