AWSTraceHeader - getting error as Duplicated keys are provided for SQS #2947
Replies: 1 comment 2 replies
-
This is the full expanded stack trace from Datadog -
|
Beta Was this translation helpful? Give feedback.
-
This is the full expanded stack trace from Datadog -
|
Beta Was this translation helpful? Give feedback.
-
Hi there,
Getting following error in 1.12.261 onwards when there is implementation for "Attribute" addition is done for SQS.
The following error occurs when "AWSTraceHeader" is not enabled in AWS, but we use Datadog and it automatically tries to add "AWSTraceHeader".
java.lang.IllegalArgumentException: Duplicated keys (AWSTraceHeader) are provided. at com.amazonaws.services.sqs.model.Message.addAttributesEntry(Message.java:599) ~[app.jar:1.0.12-SNAPSHOT-444-branch-master] at com.amazonaws.services.sqs.model.transform.MessageStaxUnmarshaller.unmarshall(MessageStaxUnmarshaller.java:152) ~[app.jar:1.0.12-SNAPSHOT-444-branch-master] at com.amazonaws.services.sqs.model.transform.ReceiveMessageResultStaxUnmarshaller.unmarshall(ReceiveMessageResultStaxUnmarshaller.java:47) ~[app.jar:1.0.12-SNAPSHOT-444-branch-master] at com.amazonaws.services.sqs.model.transform.ReceiveMessageResultStaxUnmarshaller.unmarshall(ReceiveMessageResultStaxUnmarshaller.java:28) ~[app.jar:1.0.12-SNAPSHOT-444-branch-master] at com.amazonaws.http.StaxResponseHandler.handle(StaxResponseHandler.java:117) ~[app.jar:1.0.12-SNAPSHOT-444-branch-master] at com.amazonaws.http.StaxResponseHandler.handle(StaxResponseHandler.java:42) ~[app.jar:1.0.12-SNAPSHOT-444-branch-master] at com.amazonaws.http.response.AwsResponseHandlerAdapter.handle(AwsResponseHandlerAdapter.java:69) ~[app.jar:1.0.12-SNAPSHOT-444-branch-master] at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleResponse(AmazonHttpClient.java:1794) ~[app.jar:1.0.12-SNAPSHOT-444-branch-master]
Can you please have a look by integrating Datadog with the aws-sdk-java?
Thanks,
Sunil Sutar
Beta Was this translation helpful? Give feedback.
All reactions