You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 13, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 13, 2026. It is now read-only.
streaming_pull_manager.py throws TypeError: object of type 'NoneType' has no len() #1238
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()
@githubwua The fix you provide will not help address this issue(whose existence in the latest version of the library is yet to be verified). This is because dropped_messages would be a list(empty or otherwise), and hence a len() on it should not result in an error.
Activity
Update streaming_pull_manager.py to address NoneType
mukund-ananthu commentedon Aug 28, 2024
@githubwua The fix you provide will not help address this issue(whose existence in the latest version of the library is yet to be verified). This is because
dropped_messageswould be a list(empty or otherwise), and hence a len() on it should not result in an error.githubwua commentedon Sep 2, 2024
The proper fix: #1244