AWS-SDK issue w/ deleteMessageBatch, telling me MissingParameter but I'm not.
See original GitHub issueI see this issue that is closed and old. Is there by chance a regression? https://github.com/aws/aws-sdk-js/issues/40 I’m getting the following message:
UnhandledPromiseRejectionWarning: MissingParameter: The request must contain the parameter DeleteMessageBatchRequestEntry.1.Id.
I think I’m following the documentation to a T
at AWS-SDK/SQS
I’m using this code
var params = {
Entries: _.map(_.uniqWith(data.Messages,d=>d.MessageId),d=>({
Id: d.MessageId,
ReceiptHandle: d.ReceiptHandle
})),
QueueUrl: xx.QueueUrl
};
await sqs.deleteMessageBatch(params).promise();
This is what params looks like at the time of sending; looks just like the docs if you ask me…
{
Entries: [
{
Id: "83ba1e18-someid",
ReceiptHandle: "AQEB79CDI1Q+blablabla"
}
]
QueueUrl: "https://sqs.us-west-2.amazonaws.com/somequeeuurl"
}
My system:
aws-sdk: "^2.367.0",
MacOS - current
node 8.12.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
AWS-SDK issue w/ deleteMessageBatch, telling me ...
UnhandledPromiseRejectionWarning: MissingParameter: The request must contain the parameter DeleteMessageBatchRequestEntry.1.Id.
Read more >DeleteMessageBatch - Amazon Simple Queue Service
Deletes up to ten messages from the specified queue. This is a batch version of DeleteMessage. The result of the action on each...
Read more >SqsClient (AWS SDK for Java - 2.19.3)
A message is considered to be stored after it is sent to a queue by a producer, but not yet received from the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My above example is how I got it to work.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.