Skip to content

SQS Message request must contain non-empty message attribute type #1692

@houseofdouglas

Description

@houseofdouglas

Am I using the chain building in the wrong way?

/Library/Java/JavaVirtualMachines/jdk1.8.0_131
<aws.sdk.version>1.11.372</aws.sdk.version>

com.amazonaws.services.sqs.model.AmazonSQSException: The message attribute 'HTTPStatus' must contain non-empty message attribute type.

SendMessageRequest request = new SendMessageRequest()
                        .withQueueUrl(SQS_DEADLETTER_QUEUE)
                        .withMessageBody(new String(dataEvent))
                        .addMessageAttributesEntry("HTTPStatus",
                                new MessageAttributeValue().withStringValue(String.valueOf(sfmcDataEvents.getResponseCode())));
getSQSClient().sendMessage(request);

screen shot 2018-07-24 at 10 30 18 am

Metadata

Metadata

Assignees

No one assigned

    Labels

    guidanceQuestion that needs advice or information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions