Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event-loop:Workerman\Events\Revolt不可用 #24

Closed
tangshuanglong opened this issue Jun 14, 2024 · 1 comment
Closed

Event-loop:Workerman\Events\Revolt不可用 #24

tangshuanglong opened this issue Jun 14, 2024 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@tangshuanglong
Copy link

报错如下:
Error: Call to undefined method Workerman\Events\Revolt::add() in D:\EServer-3.5.3-win\core\www\ld-game-webman-api\vendor\workerman\rabbitmq\src\Client.php:158
Stack trace:
#0 D:\EServer-3.5.3-win\core\www\ld-game-webman-api\vendor\workbunny\webman-rabbitmq\src\Connection.php(93): Workerman\RabbitMQ\Client->connect()
#1 D:\EServer-3.5.3-win\core\www\ld-game-webman-api\vendor\workbunny\webman-rabbitmq\src\Builders\QueueBuilder.php(64): Workbunny\WebmanRabbitMQ\Connection->consume(Object(Workbunny\WebmanRabbitMQ\BuilderConfig))
#2 D:\EServer-3.5.3-win\core\www\ld-game-webman-api\support\helpers.php(432): Workbunny\WebmanRabbitMQ\Builders\QueueBuilder->onWorkerStart(Object(Workerman\Worker))
#3 D:\EServer-3.5.3-win\core\www\ld-game-webman-api\support\helpers.php(470): worker_bind(Object(Workerman\Worker), Object(process\workbunny\rabbitmq\RestyBuilder))
#4 D:\EServer-3.5.3-win\core\www\ld-game-webman-api\vendor\workerman\workerman\src\Worker.php(2443): {closure}(Object(Workerman\Worker))
#5 D:\EServer-3.5.3-win\core\www\ld-game-webman-api\vendor\workerman\workerman\src\Worker.php(1451): Workerman\Worker->run()
#6 D:\EServer-3.5.3-win\core\www\ld-game-webman-api\vendor\workerman\workerman\src\Worker.php(1370): Workerman\Worker::forkWorkersForWindows()
#7 D:\EServer-3.5.3-win\core\www\ld-game-webman-api\vendor\workerman\workerman\src\Worker.php(572): Workerman\Worker::forkWorkers()
#8 D:\EServer-3.5.3-win\core\www\ld-game-webman-api\runtime\windows\start_RestyBuilder.php(23): Workerman\Worker::runAll()
#9 {main}

@chaz6chez
Copy link
Member

Workerman\Events\Revolt是workerman 5.x的特性,目前5.x还处于beta阶段;以下有两个方案可以采用:

  1. 回退至workerman 4.x
  2. 等待webman-rabbitmq兼容5.x

@chaz6chez chaz6chez added bug Something isn't working enhancement New feature or request labels Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants