ZBLOG

Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-dead-letter-exchange' for queue 'simple.queue' in vhost '/': receiv...

This error message is indicating that there is a mismatch between the configuration of a RabbitMQ queue and an exchange. Specifically, it is saying that the ‘x-dead-letter-exchange’ argument for the ‘simple.queue’ queue in the virtual host ‘/’ does not match the current value of ‘dl.direct’ (which is of type ‘longstr’).

The error code ‘406’ refers to a “PRECONDITION_FAILED” error, which means that some preconditions required for the operation to succeed were not met. In this case, it seems that the precondition is that the ‘x-dead-letter-exchange’ value for the queue must match the current value set for the exchange.

To resolve this issue, you will need to ensure that the ‘x-dead-letter-exchange’ value for the ‘simple.queue’ queue is set to ‘dl.direct’ (assuming that is the correct value). You can do this by modifying the configuration of the queue using the RabbitMQ management console or by using the appropriate API calls in your code. Once the queue and exchange configurations are aligned, this error should be resolved.

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:http://sdn.0voice.com/?id=397

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?