Open wokim opened 7 years ago
You can check the issue out with running code below in orderly.
const conn = await amqp.connect('amqp://localhost'); const channel = await conn.createChannel(); await channel.assertExchange(EXCHANGE_NAME2, EXCHANGE_TYPE, EXCHANGE_OPTION);
let conn = await amqp.connect('amqp://localhost'); channel = await conn.createChannel();
await channel.assertExchange(EXCHANGE_NAME, EXCHANGE_TYPE, EXCHANGE_OPTION);
// Test code below setTimeout(() => { channel.on('error', (e) => { console.log("Error from amqp: ", e)}); channel.bindExchange(EXCHANGE_NAME2, EXCHANGE_NAME, '', {}); }, 15000);
const conn = await amqp.connect('amqp://localhost'); const channel = await conn.createChannel();
await channel.assertExchange(EXCHANGE_NAME, EXCHANGE_TYPE, EXCHANGE_OPTION); channel.publish(EXCHANGE_NAME, key, new Buffer(msg));
I'm getting this suddenly too, has anyone found a fix?
Following issue is detected that application is disconnected from MQ at the very moment of two exchanges are bound.
Error step is,
I understand the error occurs. But one thing that I cannot understand is the result of error, disconnection. Because every time I see an error such as “404 (NOT_FOUND), channel closes not disconnection. Therefore, channel close might be more reasonable result than disconnection. Is there any other idea?