RabbitMQ: Handling the Error: Socket closed abruptly during opening handshake error with Node.js
This documentation is part of the Getting Started guide. You can view the complete 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 is related to the frame_max setting introduced in RabbitMQ 4.1.0.
To resolve this, update your amqplib library to version 0.10.7 or newer.