aws-sdk-js icon indicating copy to clipboard operation
aws-sdk-js copied to clipboard

Please add ApproximateReceiveCount to sqs.ReceiveMessage results

Open erikjjohnson opened this issue 13 years ago • 3 comments

Could you please add in the ApproximateReceiveCount output attributed to the response from and sqs.ReceiveMessage() call.

erikjjohnson avatar Jan 31 '13 17:01 erikjjohnson

I just pushed a fix that resolved an issue related to ReceiveMessage. You should be able to get the attributes now like this:

sqs.client.receiveMessage({QueueUrl:'https://...', AttributeNames:['All']}, function(err, data) {
  console.log(data.Messages[0].Attributes);
});

Please note, you must pass the AttributeNames param if you want to get the attributes with the response.

trevorrowe avatar Feb 01 '13 00:02 trevorrowe

Well, I'm glad it was a bug, because I was trying to access the attribute incorrectly regardless. Thanks for making me look slightly less foolish.

erikjjohnson avatar Feb 01 '13 00:02 erikjjohnson

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.

lock[bot] avatar Sep 30 '19 08:09 lock[bot]