You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that message.message_id is different from body['MessageId']? What is the difference between the two?
sqs = boto3.resource('sqs', region_name=region, aws_access_key_id=aws_access_key_id, aws_secret_access_key=aws_secret_access_key)
queue_obj = sqs.Queue(queue_url)
messages = queue_obj.receive_messages(
AttributeNames=['All'],
MessageAttributeNames=['All'],
VisibilityTimeout=15,
WaitTimeSeconds=20,
MaxNumberOfMessages=5
)
for message in messages:
body = json.loads(message.body)
print(str(message.message_id) == str(body['MessageId'])) # This prints False all the time
The text was updated successfully, but these errors were encountered:
I replied back on the Stack Overflow post. Let's keep the conversation there as we are trying to limit open GitHub issues to bugs and feature requests as shown in the boto3 README.
I see that
message.message_id
is different frombody['MessageId']
? What is the difference between the two?The text was updated successfully, but these errors were encountered: