rabbitmq报错type

Posted z-x-y

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了rabbitmq报错type相关的知识,希望对你有一定的参考价值。

TypeError: exchange_declare() got an unexpected keyword argument ‘type‘

原因应该为pika版本不同导致的用法不同,解决方法为把type换成exchange_type

 

channel.exchange_declare(exchange=direct_log,exchange_type=direct)

 

以上是关于rabbitmq报错type的主要内容,如果未能解决你的问题,请参考以下文章

Failed to convert property value of type ‘java.lang.String‘ to required type ‘int‘ for property(代码片段

SpringBoot中表单提交报错“Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported“(代码片段

报错“Field pet in XXX.HelloController required a bean of type ‘XXX.Pet‘ that could not be found.“(代码片段

已解决在react+ts中 atnd 用 upload 组件报错Failed to execute ‘readAsArrayBuffer,param 1 is notof type Blob(代码片段

已解决在react+ts中 atnd 用 upload 组件报错Failed to execute ‘readAsArrayBuffer,param 1 is notof type Blob(代码片段

springboot2.X集成RabbirMQ延迟交换机报错unknown exchange type ‘x-delayed-message‘ 找不到队列