question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AWS-SDK issue w/ deleteMessageBatch, telling me MissingParameter but I'm not.

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
anwarhamrcommented, Feb 26, 2019

My above example is how I got it to work.

0reactions
lock[bot]commented, Sep 28, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found