vyuldashev / laravel-queue-rabbitmq

RabbitMQ driver for Laravel Queue. Supports Laravel Horizon.
MIT License
1.91k stars 377 forks source link

No conector for rabbitmq #590

Open LfJohnVo opened 5 months ago

LfJohnVo commented 5 months ago

Describe the bug

After update to v14, appears this error all the time, i try cleaning cache, reseting docker, using cloudamp, checking .env, queue.php, connection.php and nothing

this is the error: InvalidArgumentException

No connector for [rabbitmq].

at vendor/laravel/framework/src/Illuminate/Queue/QueueManager.php:178 174▕ */ 175▕ protected function getConnector($driver) 176▕ { 177▕ if (! isset($this->connectors[$driver])) { ➜ 178▕ throw new InvalidArgumentException("No connector for [$driver]."); 179▕ } 180▕ 181▕ return call_user_func($this->connectors[$driver]); 182▕ }

  +13 vendor frames 

14 [internal]:0 Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(Bilfeldt\CorrelationId\CorrelationIdServiceProvider)) +5 vendor frames

20 artisan:35

this is my .env:

BROADCAST_DRIVER=pusher CACHE_DRIVER=redis QUEUE_CONNECTION=rabbitmq SESSION_DRIVER=redis SESSION_CONNECTION=sessionredis SESSION_LIFETIME=240

RABBITMQ_HOST=rabbit RABBITMQ_PORT=5672 RABBITMQ_USER=desarrollo RABBITMQ_PASSWORD=Password123. RABBITMQ_VHOST=desarrollo

and this is my queue.php:

'rabbitmq' => [

        'driver' => 'rabbitmq',
        'hosts' => [
            [
                'host' => env('RABBITMQ_HOST', 'chimpanzee-01.rmq.cloudamqp.com'),
                'port' => env('RABBITMQ_PORT', 5672),
                'user' => env('RABBITMQ_USER', 'bzzmgmoa'),
                'password' => env('RABBITMQ_PASSWORD', 'EtnXknedY3fPyVopx2O3oB0DeQPVzhHG'),
                'vhost' => env('RABBITMQ_VHOST', 'bzzmgmoa'),
            ],
            // ...
        ],

        // ...
    ],
LfJohnVo commented 5 months ago

Find the error, this package its incompatible with this other package; https://github.com/bilfeldt/laravel-route-statistics