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

listSubscriptionsByTopic not working properly #111

Closed
cotko opened this issue Aug 10, 2017 · 2 comments
Closed

listSubscriptionsByTopic not working properly #111

cotko opened this issue Aug 10, 2017 · 2 comments

Comments

@cotko
Copy link

cotko commented Aug 10, 2017

listSubscriptionsByTopic() does not return the subscription list.
After adding a few subscriptions using sns.subscribe(topicArn, sqsArn) I can get the list of subscriptions using listSubscriptions()
But if I want to only get subsciptions for a specific topic using the listSubscriptionsByTopic, the only data in result is ResponseMetadata, although I see I have subscriptions for the specified topicArn.

@brianmoran
Copy link
Collaborator

@cotko - Can I see your POSTMAN request? I am able to get subscriptions for a topic.

POST: http://localhost:4100
form-data:

Action:ListSubscriptionsByTopic
Version:2012-11-05
TopicArn:arn:aws:sns:local:000000000000:FOO-TOPIC

Response:

<ListSubscriptionsByTopicResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/">
    <ListSubscriptionsResult>
        <Subscriptions>
            <member>
                <TopicArn>arn:aws:sns:local:000000000000:FOO-TOPIC</TopicArn>
                <Protocol>sqs</Protocol>
                <SubscriptionArn>arn:aws:sns:local:000000000000:FOO-TOPIC:97d8f54d-e3f0-4500-b4a3-73338734bceb</SubscriptionArn>
                <Owner></Owner>
                <Endpoint>http://localhost:4100/queue/FOO-QUEUE-1</Endpoint>
            </member>
            <member>
                <TopicArn>arn:aws:sns:local:000000000000:FOO-TOPIC</TopicArn>
                <Protocol>sqs</Protocol>
                <SubscriptionArn>arn:aws:sns:local:000000000000:FOO-TOPIC:fd83d066-b2fa-4378-a247-af41dae1feb3</SubscriptionArn>
                <Owner></Owner>
                <Endpoint>http://localhost:4100/queue/FOO-QUEUE-2</Endpoint>
            </member>
        </Subscriptions>
    </ListSubscriptionsResult>
    <ResponseMetadata>
        <RequestId>ae209754-59bb-4dee-adb8-80e11f839c63</RequestId>
    </ResponseMetadata>
</ListSubscriptionsByTopicResponse>

@p4tin
Copy link
Collaborator

p4tin commented Sep 18, 2017

@cotko Can we get more information on step-by-step way to reproduce this - @brianmoran and myself have not been able to reproduce.

@p4tin p4tin closed this as completed Oct 7, 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

No branches or pull requests

3 participants