Open dsw2127 opened 6 years ago
Workaround is to not re-use (i.e. create a new) ReceiveMessageRequest object for every invocation.
Hi there! Thanks for contributing this fix. We have pulled it into the latest release: https://github.com/awslabs/amazon-sqs-java-extended-client-lib/releases/tag/1.0.2
AmazonSQSExtendedClient.receiveMessage(ReceiveMessageRequest)
always appendsSQSExtendedClientConstants.RESERVED_ATTRIBUTE_NAME
to the list of message attribute names of the request passed in. Therefore if the request object is re-used for multiple invocations, this request can grow and grow. Eventually, if allowed to grow over time, SQS will deny the request with a 413 Request Entity Too Large. This seems to happen when the header gets to be somewhere around 1MB.Example of message attribute names over four invocations: