You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our application wants to receive SES event notifications. These notifications are sent from SES to SNS and then to SQS. We are trying to read messages from the SQS queue.
Here the message subject is "Amazon SES Email Event Notification" which is something AWS provides and is not customizable.
We have created the model class with name "AmazonSESEmailEventNotification" .. since the subject and class name are not matching, handler is not picking up the queue messages. But if i manually publish a message with subject same as classname from the queue , handler is able to pick it up and is working fine.
I appreciate any help to solve this issue
The text was updated successfully, but these errors were encountered:
punyap181
changed the title
Not able to receive messages from SQS queue unless the message subject matched with model class GetType().Name
Not able to receive messages from SQS queue unless the message subject matches with model class GetType().Name
Nov 9, 2021
var busWithLogger = CreateMeABus.WithLogging(_loggerFactory);
busWithLogger.MessageSubjectProvider = new ConstantSubjectProvider("Amazon SES Email Event Notification");
public class ConstantSubjectProvider : IMessageSubjectProvider
{
private readonly string _subject;
public ConstantSubjectProvider(string subject)
{
_subject = subject;
}
public string GetSubjectForType(Type messageType)
{
return _subject;
}
}
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Our application wants to receive SES event notifications. These notifications are sent from SES to SNS and then to SQS. We are trying to read messages from the SQS queue.
SES notification message looks like this :
{
"Type" : "Notification",
"MessageId" : "6d3fa15a-f085-52b3-aa59-fb59bd88dce7",
"TopicArn" : "arn:aws:sns:eu-west-1:test:test",
"Subject" : "Amazon SES Email Event Notification",
"Message" : "{"eventType":"Open","mail":.........}
Here the message subject is "Amazon SES Email Event Notification" which is something AWS provides and is not customizable.
We have created the model class with name "AmazonSESEmailEventNotification" .. since the subject and class name are not matching, handler is not picking up the queue messages. But if i manually publish a message with subject same as classname from the queue , handler is able to pick it up and is working fine.
I appreciate any help to solve this issue
The text was updated successfully, but these errors were encountered: