diff --git a/functions/zoom-meeting-webhook-handler/index.js b/functions/zoom-meeting-webhook-handler/index.js index 7fa738f..4ae7300 100644 --- a/functions/zoom-meeting-webhook-handler/index.js +++ b/functions/zoom-meeting-webhook-handler/index.js @@ -105,6 +105,10 @@ const handler = async function (event, context) { body: event.body, }); + if (!response.ok) { + throw new Error(`Error: ${response.status} ${response.statusText}`); + } + console.log('EXITING IMMEDIATELY FROM zoom-meeting-webhook-handler') break;