thinkphp集成swoole報錯Uncaught think\exception\ErrorException: Swoole\Http\Response::write(): data to send is empty in


thinkphp5.1集成swoole使用命令: php think swoole之后

報錯信息:

[think\exception\ErrorException]
Uncaught think\exception\ErrorException: Swoole\Http\Response::write(): data to send is empty in /usr/local/nginx/html/exam/vendor/topthink/think-swoole/src/Ap
plication.php:122
Stack trace:
#0 [internal function]: think\Error::appError(2, 'Swoole\\Http\\Res...', '/usr/local/ngin...', 122, Array)
#1 /usr/local/nginx/html/exam/vendor/topthink/think-swoole/src/Application.php(122): Swoole\Http\Response->write('')
#2 /usr/local/nginx/html/exam/vendor/topthink/think-swoole/src/Http.php(272): think\swoole\Application->swoole(Object(Swoole\Http\Request), Object(Swoole\Http\
Response))
#3 {main}
thrown

將啟動命令加上端口號:php think swoole:server -p 9501

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM