The signature generated using v0:{WEBHOOK_REQUEST_HEADER_X-ZM-REQUEST-TIMESTAMP_VALUE}:{WEBHOOK_REQUEST_BODY} does not match the signature in the header

video sdk : 1.8.0

The webhook is not functioning properly.
The comparison between the x-zm-signature in the header and the body is not working.
I see. It appears that accessing the request header using req.headers.get(“x-zm-signature”) instead of req.headers[“x-zm-signature”] prevents the value from becoming undefined.
The body of the request has been changed to a ReadableStream.
After reading the body as a ReadableStream, the values are different.
The request body for the session.start event is documented as follows:

{
  "event": "session.started",
  "payload": {
    "account_id": "{ACCOUNT_ID}",
    "object": {
      "start_time": "2022-07-27T16:56:34Z",
      "id":"{SESSION_ID}"
    }
  },
  "event_ts": 1658940994914
}

I have confirmed that the session.start event has been updated to include session_name, and session_id.

{
  event: 'session.started',
  payload: {
    account_id: 
    object: {
      session_name: 
      start_time: 
      session_id: 
      id: 
    }
  },
  event_ts: 
}

Including or removing these elements doesn’t work.

The signature generated using v0:{WEBHOOK_REQUEST_HEADER_X-ZM-REQUEST-TIMESTAMP_VALUE}:{WEBHOOK_REQUEST_BODY} does not match the signature in the header.

Hi @hicucu
Thanks for reaching out to us!
Have you been able to take a look at our sample app?