Modifying Response Headers in a Response Block

Hi,

I am attempting to implement a challenge/response handshake process by specifying the endpoint of a statTrigger as the destination for Azure's speech to text webhook registration. I've created a response block that returns a Status 200 and includes the received validationToken in the body. However, the webhook validation does not pass.

The following error is returned:

Challenge response payload doesn't match validation token. Expected: XXXXXX, actual: "XXXXXX"

I suspect the issue stems from the response content type being JSON, which includes double quotes.

I would prefer to modify the response header's content type to address this, but I'm open to any solutions you might suggest.

1 Like

Same issue here. Anyone figured it out?

Does it help to use parseInt(token) in constructing the response block, or does that still pass the token with double quotes in it?