Skip to content

streaming_pull_manager.py throws TypeError: object of type 'NoneType' has no len() #1238

Closed
@githubwua

Description

@githubwua

Error exception:

File "/usr/local/lib/python3.10/site-packages/google/cloud/pubsub_v1/subscriber/_protocol/streaming_pull_manager.py", line 944, in _shutdown

 total = len(dropped_messages) + len(

 TypeError: object of type 'NoneType' has no len()

Thrown by this code:

https://github.com/googleapis/python-pubsub/blame/7cf2d11ce20bf9080c4434b920bdf419faac5d88/google/cloud/pubsub_v1/subscriber/_protocol/streaming_pull_manager.py#L944

We should add a check to ensure dropped_messages is not None.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: pubsubIssues related to the googleapis/python-pubsub API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions