node-amqp-connection-manager icon indicating copy to clipboard operation
node-amqp-connection-manager copied to clipboard

Empty Error on disconnect: {"err":{"cause":{},"isOperational":true}}

Open deyhle opened this issue 6 years ago • 1 comments

I got the following code:

const amqp = require('amqp-connection-manager');

const connectionURLs = [
 `amqp://${connection1User}:${connection1Password}@${host1}`,
 `amqp://${connection2User}:${connection2Password}@${host2}`,
];

const connectionManager = amqp.connect(connectionURLs, { json: true });
connectionManager.on('disconnect', (error) => {
  console.warn(`amqp disconnect reason: ${JSON.stringify(error)}`);
});

The error object given to the disconnect handler is

{"err":{"cause":{},"isOperational":true}}

with no further information. What could it be?

deyhle avatar Aug 28 '18 10:08 deyhle

Hi Ruben,

I've had a similar issue. The problem I was facing was that I tried to login as guest but guest can only login on localhost. Switching to any other user fixed my problem. By any chance this may be your issue as well?

simon-scherzinger avatar Aug 28 '18 10:08 simon-scherzinger