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');