Please add ApproximateReceiveCount to sqs.ReceiveMessage results
Could you please add in the ApproximateReceiveCount output attributed to the response from and sqs.ReceiveMessage() call.
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.
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.
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.