channel error; protocol method:
时间: 2024-01-15 07:39:49 浏览: 83
五个实用技巧:让已彻底删除的文件失而复得
根据引用和引用的信息,报错信息"channel error; protocol method: #method(channel.close)(reply-code=406, reply-text=PRECONDITION_FAILED - unknown delivery tag 1, class-id=60, method-id=80)"表示在使用RabbitTemplate操作消息队列时发生了通道错误。这个错误可能是由于未知的投递标签或者无法满足预设条件导致的。根据引用的信息,当使用@RabbitListener注解时,会自动进行ACK确认,如果在方法中再次手动ACK确认,会导致重复ACK而出错。为了解决这个问题,可以在@RabbitListener注解中添加ackMode = "MANUAL"参数,来手动配置ACK模式。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [springboot集成RabbitMq异常 Channel shutdown: channel error; protocol method](https://blog.csdn.net/qq_38082304/article/details/103049696)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Channel shutdown: channel error; protocol method](https://blog.csdn.net/weixin_43474695/article/details/107500673)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文