Skip to content

MD5 Mismatch for some SQS messages #13

@vdex42

Description

@vdex42

Firstly, thank you for making this excellent tool, it has been very useful.

I have found that some SQS messages when read through the Amazon SDK result in errors like:
MD5 hash mismatch for message id d97a1912-c5a3-4f41-8aa5-e6e37a87474f
at Amazon.SQS.Util.AmazonSQSUtil.ValidateMD5(String message, String messageId, String md5FromService)
at Amazon.SQS.Util.AmazonSQSUtil.ValidateMD5(Message message)
at Amazon.SQS.Util.AmazonSQSUtil.ValidateReceiveMessage(ReceiveMessageResponse response)
at Amazon.SQS.AmazonSQSClient.ReceiveMessage(ReceiveMessageRequest request)

I have experimented with the text I am sending. The following test case will result in that error. (It is worth adding that this message does work on the real amazon SQS)
"{"Body":"{\"Event\":\"{\\"RequestId\\":\\"b6889680-c986-4f99-9dff-a29000a800b1\\"\\"EmailSubject\\":\\"Toolbox – reset password\\"}\"}"}"

However other more complex messages go through fine.
Thank you,
Ivan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions