SQS ReceiveMessages crashes with 413 REQUEST ENTITY TOO LARGE
#1038
Labels
bug
Something isn't working
413 REQUEST ENTITY TOO LARGE
#1038
What version of OpenTelemetry are you using?
What version of Node are you using?
14.15.4
What did you do?
Example code/test case
https://github.com/marshally/aws_sdk_sqs_message_attributes_test/
Text description
We have an sqs consumer process which contains a
while
loop that callsReceiveMessages
over and over.What did you expect to see?
I expected my loop to run indefinitely without crashing.
What did you see instead?
After some hours of running, the process crashes because AWS returns
413 REQUEST ENTITY TOO LARGE
Additional context
Digging deeper, we found that
@opentelemetry-instrumentation-aws-sdk
is automatically adding newMessageAttributes
to each call toReceiveMessages
. When thoseMessageAttributes
are larger than 265KB, AWS returns 413The text was updated successfully, but these errors were encountered: