Laravel-swoole: ExceptionHandler::report() mu st be an instance of Exception

Created on 27 Oct 2018  路  2Comments  路  Source: swooletw/laravel-swoole

Hey There
i got This error after start the swoole server in the command line with artisan


In ExceptionHandler.php line 58:                                                                                                                                                           
  Uncaught TypeError: Argument 1 passed to NunoMaduro\Collision\Adapters\Laravel\ExceptionHandler::report() must be an instance of Exception, instance of TypeError gi  
  ven, called in /opt/lampp/htdocs/swoole/vendor/swooletw/laravel-swoole/src/Server/Manager.php on line 388 and defined in /opt/lampp/htdocs/swoole/vendor/nunomaduro/  
  collision/src/Adapters/Laravel/ExceptionHandler.php:58                                                                                                                
  Stack trace:                                                                                                                                                          
  #0 /opt/lampp/htdocs/swoole/vendor/swooletw/laravel-swoole/src/Server/Manager.php(388): NunoMaduro\Collision\Adapters\Laravel\ExceptionHandler->report(Object(TypeEr  
  ror))                                                                                                                                                                 
  #1 /opt/lampp/htdocs/swoole/vendor/swooletw/laravel-swoole/src/Concerns/InteractsWithWebsocket.php(67): SwooleTW\Http\Server\Manager->logServerError(Object(TypeErro  
  r))                                                                                                                                                                   
  #2 {main}                                                                                                                                                             
    thrown                                                                                                                                                              


php version 7.2.10
swoole version 4.2.3
laravel version 5.7

any solution please :(

bug fixed

All 2 comments

Hi @senbai,

Thanks for your report, can you try the latest develop branch? It should be fixed in this commit: f3cb2f9f.

Hi @senbai,

Thanks for your report, can you try the latest develop branch? It should be fixed in this commit: f3cb2f9f.

Thank You @albertcht its work now

Was this page helpful?
0 / 5 - 0 ratings