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

[Invalid Frame 21] #595

Open
Duy221995 opened this issue Jul 10, 2024 · 3 comments
Open

[Invalid Frame 21] #595

Duy221995 opened this issue Jul 10, 2024 · 3 comments
Assignees

Comments

@Duy221995
Copy link

When i change 'network_protocol' => 'tls', in config rabbitmq in queue.php
'rabbitmq' => [
'driver' => 'rabbitmq',
'network_protocol' => 'tls',
.....
]
'options' => [
.....
]
]

I caught this issue " Invalid frame type 21 {"exception":"[object] (PhpAmqpLib\Exception\AMQPInvalidFrameException"
How can i resolve this error? Thanks!

@AlexZodov
Copy link

Hi

Having same problem when trying to connect to amazon mq via amqps://

Is there any progress with this issue?

@aalda-eishia
Copy link

aalda-eishia commented Oct 1, 2024

Hi, I'm having same problem connecting to Amazon MQ via SSL. I guess same as @AlexZodov
Any help will be appreciated

@AlexZodov
Copy link

AlexZodov commented Oct 8, 2024

@aalda-eishia solved it by changing queue config (queue.php file) to

        'rabbitmq'                              => [
            'driver'      => env('DEFAULT_QUEUE_CONNECTION', 'rabbitmq'),
            'queue'       => env('DEFAULT_RABBITMQ_QUEUE', 'default'),
            'factory'     => \PhpAmqpLib\Connection\AMQPConnectionFactory::class,
            'hosts'       => [
                [
                    'host'     => env('DEFAULT_RABBITMQ_HOST', '127.0.0.1'),
                    'port'     => env('DEFAULT_RABBITMQ_PORT', 5672),
                    'user'     => env('DEFAULT_RABBITMQ_USER', 'guest'),
                    'password' => env('DEFAULT_RABBITMQ_PASSWORD', 'guest'),
                    'vhost'    => env('DEFAULT_RABBITMQ_VHOST', '/'),
                ],
            ],
            'options'     => [
                'queue' => [
                    'quorum' => env('DEFAULT_RABBITMQ_QUEUE_TYPE', 'classic') === 'quorum',
                ],
            ],
            'secure'      => env('DEFAULT_RABBITMQ_SECURE', 'no'), // here should be provided 'yes' or 'no'
            'ssl_options' => [
                'cafile'      => env('DEFAULT_RABBITMQ_SSL_CAFILE', null),
                'local_cert'  => env('DEFAULT_RABBITMQ_SSL_LOCALCERT', null),
                'local_key'   => env('DEFAULT_RABBITMQ_SSL_LOCALKEY', null),
                'verify_peer' => env('DEFAULT_RABBITMQ_SSL_VERIFY_PEER', false),
                'passphrase'  => env('DEFAULT_RABBITMQ_SSL_PASSPHRASE', null),
            ],
        ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants