我有一个 RabbitMQ 容器,它经常"unexpected_frame"异常,这意味着什么?



我有一个应用程序正在将数据推送到RabbitMQ中,然后其他一些应用程序正在订阅不同的交易所。

但最近,我在几个小时后不断出现这样的错误:

2020-07-09 12:45:12.670 [error] <0.23578.1> Error on AMQP connection <0.23578.1> (172.18.0.5:48230 ->
172.18.0.3:5672, vhost: '/', user: 'guest', state: running), channel 6:                                                                                 
operation basic.publish caused a connection exception unexpected_frame:
"expected content header for class 60, got non content"
2020-07-09 12:45:12.674 [info] <0.23578.1> closing AMQP connection <0.23578.1> (172.18.0.5:48230 ->
172.18.0.3:5672, vhost: '/'

在客户端,我收到这样的消息:

"Already closed: The AMQP operation was interrupted: AMQP close-reason, initiated by Peer,
code=505, text='UNEXPECTED_FRAME - expected content body, got non content body frame instead',
classId=60, methodId=40"

这是一个码头集装箱。

这个错误可能是关于什么的?

您正在共享一个并发发布通道,请使用以下代码

lock (ch) {  ch.BasicPublish();  }

最新更新