Skip to content

"Thread-ConsumeBidirectionalStream caught unexpected exception 'generator' object has no attribute 'add_done_callback' and will exit." #670

Closed
@mukund-ananthu

Description

@mukund-ananthu

Stacktrace:

"Thread-ConsumeBidirectionalStream caught unexpected exception 'generator'
object has no attribute 'add_done_callback' and will exit."

"Traceback (most recent call last):

File "/usr/local/lib/python3.8/site-packages/google/api_core/bidi.py", line
644, in _thread_main

self._bidi_rpc.open()

File "/usr/local/lib/python3.8/site-packages/google/api_core/bidi.py", line
294, in open

call._wrapped.add_done_callback(self._on_call_done)

AttributeError: 'generator' object has no attribute 'add_done_callback'"

Calling code: https://github.com/googleapis/python-pubsub/blob/509460520d6514361cc18675040b8b86a79d0271/google/cloud/pubsub_v1/subscriber/_protocol/streaming_pull_manager.py#L846-L854

Potentially similar issues: #309

Could you please let us know which scenarios could lead to the error and if this represents a bug ?

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions