Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Error for websocker in lumen #278

@huangdijia

Description

@huangdijia

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.5 (cli) (built: May 2 2019 12:40:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.5, Copyright (c) 1999-2018, by Zend Technologies

swoole

Swoole => enabled
Author => Swoole Team team@swoole.com
Version => 4.3.3
Built => May 14 2019 09:27:58
coroutine => enabled
kqueue => enabled
rwlock => enabled
http2 => enabled
pcre => enabled
zlib => enabled
brotli => enabled
async_redis => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.unixsock_buffer_size => 262144 => 262144

  1. Please provide your Laravel/Lumen version.

laravel/lumen-framework v5.8.7 The Laravel Lumen Framework.

  1. Which release version of this package are you using?

swooletw/laravel-swoole v2.6.6 High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  1. What did you do? If possible, provide a recipe for reproducing the error.

Illuminate\Contracts\Container\BindingResolutionException: Unresolvable dependency resolving [Parameter #0 [ $app ]] in class Illuminate\Support\Manager in /Users/hdj/gitroot/hk8591/im/vendor/illuminate/container/Container.php:973
Stack trace:
#0 /Users/hdj/gitroot/hk8591/im/vendor/illuminate/container/Container.php(911): Illuminate\Container\Container->unresolvablePrimitive(Object(ReflectionParameter))
#1 /Users/hdj/gitroot/hk8591/im/vendor/illuminate/container/Container.php(852): Illuminate\Container\Container->resolvePrimitive(Object(ReflectionParameter))
#2 /Users/hdj/gitroot/hk8591/im/vendor/illuminate/container/Container.php(818): Illuminate\Container\Container->resolveDependencies(Array)
#3 /Users/hdj/gitroot/hk8591/im/vendor/illuminate/container/Container.php(667): Illuminate\Container\Container->build('Illuminate\Sess...')
#4 /Users/hdj/gitroot/hk8591/im/vendor/illuminate/container/Container.php(615): Illuminate\Container\Container->resolve('Illuminate\Sess...', Array)
#5 /Users/hdj/gitroot/hk8591/im/vendor/laravel/lumen-framework/src/Application.php(267): Illuminate\Container\Container->make('Illuminate\Sess...', Array)
#6 /Users/hdj/gitroot/hk8591/im/vendor/illuminate/container/Container.php(925): Laravel\Lumen\Application->make('Illuminate\Sess...')
#7 /Users/hdj/gitroot/hk8591/im/vendor/illuminate/container/Container.php(853): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#8 /Users/hdj/gitroot/hk8591/im/vendor/illuminate/container/Container.php(818): Illuminate\Container\Container->resolveDependencies(Array)
#9 /Users/hdj/gitroot/hk8591/im/vendor/illuminate/container/Container.php(667): Illuminate\Container\Container->build('SwooleTW\Http\W...')
#10 /Users/hdj/gitroot/hk8591/im/vendor/illuminate/container/Container.php(615): Illuminate\Container\Container->resolve('SwooleTW\Http\W...', Array)
#11 /Users/hdj/gitroot/hk8591/im/vendor/laravel/lumen-framework/src/Application.php(267): Illuminate\Container\Container->make('SwooleTW\Http\W...', Array)
#12 /Users/hdj/gitroot/hk8591/im/vendor/illuminate/pipeline/Pipeline.php(152): Laravel\Lumen\Application->make('SwooleTW\Http\W...')
#13 /Users/hdj/gitroot/hk8591/im/vendor/swooletw/laravel-swoole/src/Websocket/Middleware/DecryptCookies.php(71): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
#14 /Users/hdj/gitroot/hk8591/im/vendor/illuminate/pipeline/Pipeline.php(163): SwooleTW\Http\Websocket\Middleware\DecryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#15 /Users/hdj/gitroot/hk8591/im/vendor/illuminate/pipeline/Pipeline.php(104): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
#16 /Users/hdj/gitroot/hk8591/im/vendor/swooletw/laravel-swoole/src/Websocket/Websocket.php(448): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#17 /Users/hdj/gitroot/hk8591/im/vendor/swooletw/laravel-swoole/src/Websocket/Websocket.php(259): SwooleTW\Http\Websocket\Websocket->setRequestThroughMiddleware(Object(Illuminate\Http\Request))
#18 /Users/hdj/gitroot/hk8591/im/vendor/swooletw/laravel-swoole/src/Concerns/InteractsWithWebsocket.php(76): SwooleTW\Http\Websocket\Websocket->call('connect', Object(Illuminate\Http\Request))
#19 {main}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions