-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
PubSub: Quickstart examples for Pub/Sub subscriber not working #4394
Comments
@jonparrott @lukesneeringer Do you know who owns those samples? |
We do? Are they just the samples in the pubsub README? |
yes and no, the sample on github is the README, but readthedocs.io contains the same information for issue 2 |
The example reverses the order of arguments passed to 'subscriber.create_subscription'. FWIW, the publisher example is borked too: it omits passing the topic name to |
@Edo-A Thanks very much for the report, BTW! |
Subscription quickstart documentation for Pub/Sub library is not correct in a couple of points.
The final
subscription
here should besubscription_name
.Using it as is throws the following error:
NameError: name 'subscription' is not defined
After modifying the line from 1 above to
it throws another error:
Note that I've copied/pasted the code example and edited the projectID, topic name and subscription name to be valid for my project. Also note that using the example from readthedocs.io (which is the same) generates the exact same error
The text was updated successfully, but these errors were encountered: