RabbitMq 3.8上的EasyNetQ经典队列

时间:2019-11-15 14:01:10

标签: rabbitmq easynetq

由于默认情况下,RabbitMq版本3.8.0队列是使用 x-queue-type:classic 创建的,因此这似乎在EasyNetQ上引起错误。

运行以下代码段将触发错误

this.bus.Receive(queueName, onMessage);

错误

The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=406, text='PRECONDITION_FAILED - inequivalent arg 'x-queue-type' for queue 'TheQueue' in vhost '/': received none but current is the value 'classic' of type 'longstr'', classId=50, methodId=10

我进行了一些测试,并且我知道问题出在队列类型这一事实,我希望能够将EasyNetQ连接到这种队列,但是我在文档中找不到有关如何执行此操作的参考。

1 个答案:

答案 0 :(得分:2)

感谢您举报。实际上,这是RabbitMQ中的错误。如果您想继续,我创建了一个问题报告IFTTT, Python and Flask。该修复程序将以3.8.2版发布。


注意: RabbitMQ团队监视rabbitmq-users here,并且有时仅在StackOverflow上回答问题。