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

consume message error - TypeError: pull() got an unexpected keyword argument 'request' #17

Open
praburajaraman opened this issue Oct 27, 2022 · 0 comments

Comments

@praburajaraman
Copy link

Hi there,
trying to run stream listener to consume messages in sync. got this error.
async message listener is working. trying to get messages in bulk to process them at once.

/code-envs/python/py39_dn001/lib/python3.9/site-packages/factiva/news/stream/listener.py in _pull_pubsub_messages(self, pubsub_client, pubsub_request, subscription_path, callback, ack_enabled)
    225 
    226         """
--> 227         pubsub_messages = pubsub_client.pull(request=pubsub_request)
    228         if pubsub_messages and pubsub_messages.received_messages:
    229             for message in pubsub_messages.received_messages:

/code-envs/python/py39_dn001/lib/python3.9/site-packages/google/cloud/pubsub_v1/_gapic.py in <lambda>(self, *a, **kw)
     38             return staticmethod(functools.wraps(wrapped_fx)(fx))
     39         else:
---> 40             fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw)  # noqa
     41             return functools.wraps(wrapped_fx)(fx)
     42 

TypeError: pull() got an unexpected keyword argument 'request'
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

1 participant