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
list_subscriptions takes the project_path as parameter, not the topic_path
correct method would be
def list_subscriptions(project):
"""Lists all subscriptions for a given topic."""
subscriber = pubsub_v1.SubscriberClient()
project_path = subscriber.project_path(project)
for subscription in subscriber.list_subscriptions(project_path):
print(subscription.name)
Describe the issue
The text was updated successfully, but these errors were encountered:
In which file did you encounter the issue?
https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/pubsub/cloud-client/subscriber.py#L33-L35
Did you change the file? If so, how?
list_subscriptions takes the project_path as parameter, not the topic_path
correct method would be
Describe the issue
The text was updated successfully, but these errors were encountered: