首页 新闻 会员 周边 捐助

dapr pubsub 发布消息失败 "inequivalent arg 'auto_delete'"

0
悬赏园豆:30 [已解决问题] 解决于 2023-08-06 19:59

将 dapr 从 1.9.5 升级至 1.11.2 后遇到的问题,错误日志如下:

Dapr.DaprException: Publish operation failed: the Dapr endpoint indicated a failure. See InnerException for details.
 ---> Grpc.Core.RpcException: Status(StatusCode="Internal", Detail="error when publish to topic i.BlogPostPublishedIntegrationEvent in pubsub pubsub: Exception (406) Reason: "PRECONDITION_FAILED - inequivalent arg 'auto_delete' for exchange 'i.BlogPostPublishedIntegrationEvent' in vhost '/': received 'true' but current is 'false'"")
   at Dapr.Client.DaprClientGrpc.MakePublishRequest(String pubsubName, String topicName, ByteString content, Dictionary`2 metadata, String dataContentType, CancellationToken cancellationToken)

请问如何解决?

dudu的主页 dudu | 高人七级 | 园豆:30778
提问于:2023-08-06 19:05
< >
分享
最佳答案
0

在 pubsub.rabbitmq 中将 deletedWhenUnused 设为 false 可以解决

编辑 pubsub component 清单

kubectl edit component pubsub

在 spec 中添加

spec: 
  - name: deletedWhenUnused
    value: false
dudu | 高人七级 |园豆:30778 | 2023-08-06 19:59
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册