Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subject and Message is empty when receiving message from queue that was published with sns #79

Closed
splagemann opened this issue Dec 22, 2016 · 1 comment · Fixed by #80

Comments

@splagemann
Copy link
Contributor

Hi,
thanks for the project. I'm having an issue when receiving a message from SQS that was published by SNS:

sebastian:~/Development/message$ aws --endpoint-url http://localhost:4100 sns create-topic --name something-happend
{
    "TopicArn": "arn:aws:sns:local:000000000000:something-happend"
}
sebastian:~/Development/message$ aws --endpoint-url http://localhost:4100 sqs create-queue --queue-name something-happened
{
    "QueueUrl": "http://localhost:4100/queue/something-happened"
}
sebastian:~/Development/message$ aws --endpoint-url http://localhost:4100 sns subscribe --topic-arn arn:aws:sns:local:000000000000:something-happend --protocol sqs --notification-endpoint http://localhost:4100/queue/something-happened
{
    "SubscriptionArn": "arn:aws:sns:local:000000000000:something-happend:41846153-40d1-42fc-af39-649b48bac0fb"
}
sebastian:~/Development/message$ aws --endpoint-url http://localhost:4100 sns publish --topic-arn arn:aws:sns:local:000000000000:something-happend --subject test --message test
{
    "MessageId": "c91ac05a-be13-4a4a-9d04-8646274b0389"
}
sebastian:~/Development/message$ aws --endpoint-url http://localhost:4100 sqs receive-message --queue-url http://localhost:4100/something-happened
{
    "Messages": [
        {
            "ReceiptHandle": "29f556cc-79b8-4f1e-b3b8-7d34e121a9b2#fa293d47-48ef-4402-8173-43f2df13b1d6",
            "MessageId": "29f556cc-79b8-4f1e-b3b8-7d34e121a9b2",
            "Body": "{\"Type\":\"Notification\",\"MessageId\":\"9f967ab3-dce0-4667-93f2-20032cb409d2\",\"TopicArn\":\"arn:aws:sns:local:000000000000:something-happend\",\"Subject\":\"\",\"Message\":\"\",\"TimeStamp\":\"2016-12-22T10:12:26:012Z\\n\"}",
            "MD5OfBody": "b49c3ab34610f6ac60fa57006fe040ef"
        }
    ]
}
sebastian:~/Development/message$ aws --endpoint-url http://localhost:4100 sqs receive-message --queue-url http://localhost:4100/something-happened

Problem is that Subject and Message is empty when receiving the message from SQS.

Am I doing something wrong or is that not implemented (yet)?

@splagemann
Copy link
Contributor Author

splagemann commented Dec 22, 2016

Hey,
just build the go version (was using the docker version) and the message shows up, but not the subject.
I'm not very deep into go, but will see if I can figure out why

splagemann pushed a commit to splagemann/goaws that referenced this issue Dec 22, 2016
@p4tin p4tin closed this as completed in #80 Jan 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant