亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

TwiML 響應主體太大錯誤 11750 laravel

TwiML 響應主體太大錯誤 11750 laravel

PHP
尚方寶劍之說 2022-12-23 14:36:11
<?phpnamespace App\Http\Controllers;use Illuminate\Http\Request;use Twilio\Rest\Client;use Twilio\TwiML\VoiceResponse;class HomeController extends Controller{// call process    public function welcome(Request $request)    {        $twiml = new VoiceResponse();        if(isset($request->Digits)){            switch($request->Digits){                case 1:                    $twiml->say('thank you calling us');                    break;                default:                    $twiml->say('You have entered wrong key');                    break;            }        } else{            $twiml->say(                'Thank you for calling Call Congress! Press 1 for Connect the call.'            )->gather([                'numDigits' => 1,                'action' => $this->endCall();            ]);            /*$gather = $twiml->gather(array('numDigits' => 1));            $gather->say('Thank you for calling us. Press 1 to continue the call.');*/        }        return $twiml;    }    public static function endCall()    {        $twiml = new Twiml();        $twiml->say(            'Thank you for using Call Congress! ' .            'Your voice makes a difference. Goodbye.'        )->hangup();        return $twiml;    }}我收到一條錯誤消息“在您對 Twilio 請求的響應中,響應正文大于 64 kB。'. 可能的原因 您提供的 TwiML 大于 64 kB 或您在響應中提供非 TwiML 內容。提前致謝。
查看完整描述

1 回答

?
catspeake

TA貢獻1111條經驗 獲得超0個贊

通常這意味著您的應用程序正在崩潰并將堆棧跟蹤返回給 Twilio 以執行,從而導致此錯誤。



查看完整回答
反對 回復 2022-12-23
  • 1 回答
  • 0 關注
  • 100 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號