-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hello!
| var response = await sqs.SendMessageAsync(new SendMessageRequest(queueUrl, messageBody)); |
To be able to send a message to a Fifo queue we need to specify a MessageGroupId and a MessageDeduplicationId.
As a quick fix, I suggest to add this to fix the problem:
var message = new SendMessageRequest(queueUrl, messageBody);
if (queueUrl.EndsWith(".fifo", StringComparison.OrdinalIgnoreCase))
message.MessageGroupId = Guid.NewGuid().ToString();
message.MessageDeduplicationId = Guid.NewGuid().ToString();
var response = await sqs.SendMessageAsync(message);
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working