node-amqp-connection-manager
node-amqp-connection-manager copied to clipboard
Empty Error on disconnect: {"err":{"cause":{},"isOperational":true}}
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?
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?