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

[marketplace-integrated-saas]: #15

Open
andy-rose-pantheon opened this issue Feb 12, 2021 · 1 comment
Open

[marketplace-integrated-saas]: #15

andy-rose-pantheon opened this issue Feb 12, 2021 · 1 comment

Comments

@andy-rose-pantheon
Copy link

On step 4, the create_subscription.py script doesn't seem to work.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/andyrose/.pyenv/versions/3.7.5/lib/python3.7/site-packages/google/cloud/pubsub_v1/_gapic.py", line 40, in <lambda>
    fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw)  # noqa
TypeError: create_subscription() takes from 1 to 2 positional arguments but 3 were given

Looking through it, I'm not sure that we would have access to the project 'cloudcommerceproc-prod', but that doesn't seem to be why it failed. When trying to create the subscription in the UI, I am not able to find 'cloudcommerceproc-prod'.

@Moonwalker7
Copy link

This worked for me

subscription = subscriber.create_subscription( request={"name": subscription_path, "topic": topic_path} )

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

2 participants