I am getting the error below when I am trying to publish my flow.
Here is a snippet of my endpoint, it's afirebase cloud function
exports.webhook = functions.https.onRequest( (request,response)=>{
const body = request.body;
const { decryptedBody, aesKeyBuffer, initialVectorBuffer } = decryptRequest(
body
);
const { screen, data, version, action } = decryptedBody;
if (action === "ping") {
const res = `{
"version": "3.0",
"data": {
"status": "active"
}
}`
response.send(res)
}
})
As per the Encrypted Secure Data Channel Docs for WhatsApp Flows.
Please make sure that you are encrypting the response, as it is not obvious from the code snippet if this is being done.
Thanks for using WhatsApp Flows, and please reach out if you still face problems :)