RabbitMQ: Handle error CLIENT ALERT: Fatal - Handshake Failure with Elixir

This documentation is part of the Getting started guide. View the full guide here: How to use Stackhero for RabbitMQ.

If you are connecting from Elixir and see the error message

CLIENT ALERT: Fatal - Handshake Failure

this usually points to a bug in the AMQP library's support for TLS 1.3. A reliable workaround is to force the use of TLS 1.2 by including this option when opening the connection:

AMQP.Connection.open("amqps://admin:<PASSWORD>@<XXXXXX>.stackhero-network.com:<AMQP_PORT_TLS>", :undefined, ssl_options: [ versions: [ :"tlsv1.2" ] ])