Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log error code and message for each BatchResultErrorEntry #23

Conversation

Glen-Moonpig
Copy link
Contributor

Intended to solve #22

I do not code in go, so the code may need some work. Please advise.

@Glen-Moonpig
Copy link
Contributor Author

Tested working:

./sqsmover --source=my-source-queue --destination=my-destination-queue --region="eu-west-1"

   • Source queue URL: https://sqs.eu-west-1.amazonaws.com/123456789/my-source-queue
   • Destination queue URL: https://sqs.eu-west-1.amazonaws.com/123456789/my-destination-queue
   • Approximate number of messages in the source queue: 1688
   • Starting to move messages...

   ⨯ 10 messages failed to enqueue, see details below
   ⨯ 0 - (InvalidParameterValue) One or more parameters cannot be validated. Reason: Message must be shorter than 2048 bytes.
   ⨯ 1 - (InvalidParameterValue) One or more parameters cannot be validated. Reason: Message must be shorter than 2048 bytes.
   ⨯ 2 - (InvalidParameterValue) One or more parameters cannot be validated. Reason: Message must be shorter than 2048 bytes.
   ⨯ 3 - (InvalidParameterValue) One or more parameters cannot be validated. Reason: Message must be shorter than 2048 bytes.
   ⨯ 4 - (InvalidParameterValue) One or more parameters cannot be validated. Reason: Message must be shorter than 2048 bytes.
   ⨯ 5 - (InvalidParameterValue) One or more parameters cannot be validated. Reason: Message must be shorter than 2048 bytes.
   ⨯ 6 - (InvalidParameterValue) One or more parameters cannot be validated. Reason: Message must be shorter than 2048 bytes.
   ⨯ 7 - (InvalidParameterValue) One or more parameters cannot be validated. Reason: Message must be shorter than 2048 bytes.
   ⨯ 8 - (InvalidParameterValue) One or more parameters cannot be validated. Reason: Message must be shorter than 2048 bytes.
   ⨯ 9 - (InvalidParameterValue) One or more parameters cannot be validated. Reason: Message must be shorter than 2048 bytes.

@mercury2269
Copy link
Owner

Looks great, thanks a lot @Glen-Moonpig!

@mercury2269 mercury2269 merged commit d04e24a into mercury2269:master Apr 1, 2021
thuaultc referenced this pull request in honestica/sqsmover Apr 15, 2021
Log error code and message for each  BatchResultErrorEntry (#23)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants