ReceiveMessageRequest - withAttributeNames("All") in v1 to messageAttributeNames("All") in v2 #6593
Answered
by
bhoradc
karthika-49
asked this question in
Migration from v1 to v2
|
Context - SQS - ReceiveMessageRequest I tried to replace withAttributeNames with messageAttributesNames as attributeNamesWithStrings is deprecated. But when I used messageAttributesNames I got empty list. But incase of attributeNamesWithStrings I'm able to retrieve all attributes. What's the issue with messageAttributeNames? |
Answered by
bhoradc
Dec 2, 2025
Replies: 2 comments 1 reply
|
Hello! Reopening this discussion to make it searchable. |
0 replies
|
Hi @karthika-49 Are they all system attributes that you are getting with If that doesn't work, kindly share a self-contained code sample that can reproduce the issue at our end for further investigation. Regards, |
1 reply
Answer selected by
karthika-49
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @karthika-49
Are they all system attributes that you are getting with
attributeNamesWithStrings? Can you try usingmessageSystemAttributeNamesinstead?If that doesn't work, kindly share a self-contained code sample that can reproduce the issue at our end for further investigation.
Regards,
Chaitanya