swooletw / laravel-swoole

High performance HTTP server based on Swoole. Speed up your Laravel or Lumen applications.
MIT License
4.03k stars 388 forks source link

php artisan swoole:http start failed #514

Closed carlos-lci closed 2 years ago

carlos-lci commented 2 years ago

Make sure you read Issues Guideline and answer these questions before submitting your issue. Thanks! (Any non-English issues will be closed immediately.)

  1. Please provide your PHP and Swoole version. (php -v and php --ri swoole) php 7.3 swoole 4.8.6

  2. Please provide your Laravel/Lumen version. laravel 5.8

  3. Which release version of this package are you using? 2.11

  4. What did you do? If possible, provide a recipe for reproducing the error. php artisan swoole:http start

  5. What did you expect to see? swoole started

  6. What did you see instead? Starting swoole http server... Swoole http server started: http://0.0.0.0:9205

    (You can run this command to ensure the swoole_http_server process is running: ps aux|grep "swoole") [2022-01-24 12:22:14] dev.ERROR: Type error: Swoole\Server::construct() expects parameter 3 to be int, string given {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Type error: Swoole\Server::construct() expects parameter 3 to be int, string given at /var/www/kds/releases/1642947007/vendor/swooletw/laravel-swoole/src/HttpServiceProvider.php:173)"} []

In HttpServiceProvider.php line 173:

Type error: Swoole\Server::__construct() expects parameter 3 to be int, string given

carlos-lci commented 2 years ago

I fixed it downgrading... Swoole to 4.4.22 laravel-swoole to v2.6.69