Problems with Validating Server

0

Hello everyone.

I am using a self-hosted email marketing script. I have entered the information required to incorporate Amazon SES API, but when I try to validate the server to finalize the process I am receiving this error:

Error executing "CreateTopic" on "https://sns.us-east-1.amazonaws.com"; AWS HTTP error: Client error: `POST https://sns.us-east-1.amazonaws.com` resulted in a `400 Bad Request` response:
<ErrorResponse xmlns="http://sns.amazonaws.com/doc/2010-03-31/">
<Error>
<Type>Sender</Type>
<Code>InvalidPara (truncated...)
InvalidParameter (client): Invalid parameter: Attributes Reason: Topic already exists with different attributes - <ErrorResponse xmlns="http://sns.amazonaws.com/doc/2010-03-31/">
<Error>
<Type>Sender</Type>
<Code>InvalidParameter</Code>
<Message>Invalid parameter: Attributes Reason: Topic already exists with different attributes</Message>
</Error>
<RequestId>8xxxxxx-3xxc-5xxx-8xxx-3c0xxxx58xxf</RequestId>
</ErrorResponse>

The email being used is verified in Amazon SES. The users have the correct privs.

Any ideas or insight would be appreciated. Thanks for your time and have a great day.

2 Answers
2
Accepted Answer

The error message you're encountering indicates that a topic with the same name already exists in Amazon SNS, but it has different attributes than the one you're trying to create with your self-hosted email marketing script.

Some high level solution & troubleshooting ideas :

1/Check Existing Topics: Go to the Amazon SNS console and navigate to the "Topics" section. Look for any topics with a name similar to the one you're trying to create with your script. If you find an existing topic, check its attributes (e.g., DeliveryPolicy, RedirectionPolicy). These attributes determine how messages are delivered and handled for the topic.

2/ Delete the Existing Topic (if applicable): If the existing topic is not necessary for your application, you can delete it and try creating a new one with the desired attributes using your script.

3/ Modify Your Script: If the existing topic is needed, you may need to modify your script to use the existing topic name and adjust its behavior to match your existing attributes. Refer to the AWS documentation for creating topics with specific attributes using the SES API.

4/ Unique Topic Name: Consider using a unique topic name specific to your application to avoid conflicts with existing topics.

profile pictureAWS
cloudyy
answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago
profile picture
EXPERT
reviewed 2 months ago
0

Thank you for pointing me in the right direction @cloudyy After examining the existing Topics as you suggested, I discovered the culprit.

Appreciate the swift and thorough reply. Have a great day!

answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions