RabbitMQ: Handle error Error: Socket closed abruptly during opening handshake with Node.js
This documentation is part of the Getting started guide. View the full guide here: How to use Stackhero for RabbitMQ.
If you see the error Error: Socket closed abruptly during opening handshake when using Node.js, it is likely because you are using a version of the amqplib library older than 0.10.7 with RabbitMQ 4.1.0 or later. This change relates to the frame_max setting introduced in RabbitMQ 4.1.0.
To resolve this, you can update your amqplib library to version 0.10.7 or newer.