Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when requeuing message using DeferMessageAction #2698

Closed
holytshirt opened this issue Jun 13, 2023 · 0 comments
Closed

Error when requeuing message using DeferMessageAction #2698

holytshirt opened this issue Jun 13, 2023 · 0 comments

Comments

@holytshirt
Copy link
Member

Describe the bug

System.ArgumentException: An item with the same key has already been added. Key: ReplyTo is been thrown when you use DeferMessageAction when using Azure Service Bus

Exceptions (if any)

[16:09:49 ERR] Failed to publish message to topic local.lz.myevent with id 07e5edca-8613-467e-8c75-064a584cc916, message will not be retried. System.ArgumentException: An item with the same key has already been added. Key: ReplyTo at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value) at Paramore.Brighter.MessagingGateway.AzureServiceBus.AzureServiceBusMessageProducer.ConvertToServiceBusMessage(Message message) in /_/src/Paramore.Brighter.MessagingGateway.AzureServiceBus/AzureServiceBusMessageProducer.cs:line 247 at Paramore.Brighter.MessagingGateway.AzureServiceBus.AzureServiceBusMessageProducer.SendWithDelayAsync(Message message, Int32 delayMilliseconds) in /_/src/Paramore.Brighter.MessagingGateway.AzureServiceBus/AzureServiceBusMessageProducer.cs:line 183

Further technical details

  • Brighter version 9.5.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant