Node.js Lambda undefined error on Genesys Cloud webhook payload

Our WFM Lambda function keeps failing when processing the routing.queue.member.updated webhook. The event object looks valid but event.body comes back undefined even though the CloudWatch logs show the raw JSON payload.

TypeError: Cannot read properties of undefined (reading 'body')
 at exports.handler (/var/task/index.js:4:17)

Here is the handler code we’re using:

exports.handler = (event, context) => {
 const body = JSON.parse(event.body);
 console.log('Received event:', body);
};

We’ve verified the webhook is firing correctly from the Architect side. Any idea why the property is missing?