第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

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

PHP/Phalcon 錯誤:沒有發(fā)送請求就關(guān)閉了;它可能只是一個未使用的推測性預(yù)連接

PHP/Phalcon 錯誤:沒有發(fā)送請求就關(guān)閉了;它可能只是一個未使用的推測性預(yù)連接

PHP
天涯盡頭無女友 2023-05-26 17:28:43
我有一個基本的控制器動作:    public function createAction() {        $this->view->disable();        $formData = $this->request->getJsonRawBody();        $user = new Users();        $user->first_name = $formData->first_name;        $user->last_name = $formData->last_name;        $user->email_address = $formData->email_address;        $user->password = $formData->password;        // this prints to my debug log.        $result = $user->save();         AppLogger::$logger->debug(print_r($result, true)); // this does not print.        AppLogger::$logger->debug("oh boy #2"); // this does not print either.        // which seems to tell me that the line above it is problematic,        // but there is no error output from `phalcon serve`        echo Json::encode($result);    }我看到的最接近錯誤的是PHP/Phalcon Error: Closed without sending a request; it was probably just an unused speculative preconnection:這出現(xiàn)在 的輸出中phalcon serve。我phalcon serve在 Windows 上運(yùn)行 VSCode。
查看完整描述

3 回答

?
交互式愛情

TA貢獻(xiàn)1712條經(jīng)驗(yàn) 獲得超3個贊

當(dāng)用戶嘗試注銷時遇到同樣的問題,重新啟動我的服務(wù)器(laravel 內(nèi)置服務(wù)器)并且它非常有效。



查看完整回答
反對 回復(fù) 2023-05-26
?
莫回?zé)o

TA貢獻(xiàn)1865條經(jīng)驗(yàn) 獲得超7個贊

我通過包裝$result = $user->save();在 try/catch 中解決了這個問題,然后我能夠看到異常。

似乎這個異常并沒有自動顯示在終端輸出中......


查看完整回答
反對 回復(fù) 2023-05-26
?
MM們

TA貢獻(xiàn)1886條經(jīng)驗(yàn) 獲得超2個贊

如果您正在克隆 Laravel 項(xiàng)目,請確保您的.env文件已創(chuàng)建。他們有敏感信息,可能會保存在.gitignore中。



查看完整回答
反對 回復(fù) 2023-05-26
  • 3 回答
  • 0 關(guān)注
  • 589 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號