-
Notifications
You must be signed in to change notification settings - Fork 54
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
SNS topic subscription isn't confirmed after being created #102
Comments
Hey @TiagoBrito, can you be specific? Is it not creating the topic, not subscribing to a created topic, or just not doing either? Are you testing locally? In order for a topic to be subscribed to, it needs to be an endpoint that is publicly available so that SNS can send a POST to that endpoint for subscription confirmation. If its not publicly available, the subscription won't work. You can use Ngrok as mentioned in the docs in that case to allow for testing locally. |
@kmfk Thanks for your quick reply. |
@TiagoBrito Are you doing this locally? As mentioned above, the http(s) endpoint you specify needs to be publicly accessible. When you subscribe an endpoint to a topic, SNS will automatically send a confirmation request (POST request) and you'd need to respond with a request to a given url to confirm. That process is handled for you with this library, as long as SNS can reach your endpoint to begin with. To be clear, your endpoint must be accessible by SNS. In local development, you typically do not have a public url unless you use something like ngrok. See: http://qpush-bundle.readthedocs.io/en/latest/usage.html#push-queues-in-development |
Yes, I'm doing this locally, but the thing is: the request from SNS never reached my ngrok (but I will double check this). |
I don't get it... I always get |
@kmfk I think i finally got it... My queue my_queue_key is different from my queue name in configurations. Example:
In RequestListener when the type is Notification, the queue name is getted from the subject: |
Thanks for looking into that @TiagoBrito - just merged in a fix that should work for when the |
I've tried without success to create and subscribe to SNS with AWS provider.
Can you confirm that this is still working?
The text was updated successfully, but these errors were encountered: