From 58a40a70849d5cdc845a637f6e998081d35aa7cc Mon Sep 17 00:00:00 2001 From: kevinleestites2-dev Date: Mon, 15 Jun 2026 10:17:40 -0400 Subject: [PATCH] Fix Telnyx webhook response parsing --- src/app/api/webhooks/telnyx/sms/route.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/webhooks/telnyx/sms/route.js b/src/app/api/webhooks/telnyx/sms/route.js index e223c2c..7030113 100644 --- a/src/app/api/webhooks/telnyx/sms/route.js +++ b/src/app/api/webhooks/telnyx/sms/route.js @@ -218,7 +218,7 @@ async function sendTelnyxResponse(fromPhone, toPhone, message) { }); if (!response.ok) { - const errorData = await response.NextResponse.json(); + const errorData = await response.json(); console.error('[TELNYX-WEBHOOK] Failed to send response SMS:', errorData); } else { console.log('[TELNYX-WEBHOOK] Response SMS sent successfully');