You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using version 0.4.2 of the library and I'm having some issues during connection. The callback seems to be called twice with errors, when given this (invalid) url.
var amqp = require('amqplib/callback_api');
var amqpUrl = "amqp://username:[email protected]";
var counter = 0;
function output(err) {
console.log('Error: ' + JSON.stringify(err));
console.log(++counter);
}
amqp.connect(amqpUrl, {}, function(err, conn) {
if (err) {
return output(err);
}
console.log("No error");
});
The text was updated successfully, but these errors were encountered:
I can confirm this -- the connect callback is called once with Error: Handshake terminated by server: 403 (ACCESS-REFUSED) with message "ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN., then a second time a couple seconds later with read ECONNRESET.
This is related to #266 - general connection error handling. We can read there - listen for 'error' on the connection object. But there is no connection object.
I'm using version 0.4.2 of the library and I'm having some issues during connection. The callback seems to be called twice with errors, when given this (invalid) url.
The text was updated successfully, but these errors were encountered: