Closed
Description
Environment details
- OS type and version:
FROM python:3.7.9-slim-stretch
- Python version:
python --version
3.7.9
- pip version:
pip --version
20.2
google-api-core
version:pip show google-api-core
2.2.2
Steps to reproduce
- Make a
Subscriber
usinggoogle-cloud-pubsub 2.9.0
- await new messages
- After 30 minutes you get the unexpected exception
Stack trace
Thread-ConsumeBidirectionalStream caught unexpected exception 'NoneType' object has no attribute 'Call' and will exit.
Traceback (most recent call last):
File "/root/.local/lib/python3.7/site-packages/google/api_core/grpc_helpers.py", line 106, in __next__
return next(self._wrapped)
File "/root/.local/lib/python3.7/site-packages/grpc/_channel.py", line 426, in __next__
return self._next()
File "/root/.local/lib/python3.7/site-packages/grpc/_channel.py", line 826, in _next
raise self
grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.INTERNAL
details = "Received RST_STREAM with error code 2"
debug_error_string = "{"created":"@1637058210.761422301","description":"Error received from peer ipv4:173.194.210.95:443","file":"src/core/lib/surface/call.cc","file_line":1069,"grpc_message":"Received RST_STREAM with error code 2","grpc_status":13}"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/.local/lib/python3.7/site-packages/google/api_core/bidi.py", line 655, in _thread_main
response = self._bidi_rpc.recv()
File "/root/.local/lib/python3.7/site-packages/google/api_core/bidi.py", line 561, in recv
return self._recoverable(self._recv)
File "/root/.local/lib/python3.7/site-packages/google/api_core/bidi.py", line 520, in _recoverable
raise exc
File "/root/.local/lib/python3.7/site-packages/google/api_core/bidi.py", line 504, in _recoverable
return method(*args, **kwargs)
File "/root/.local/lib/python3.7/site-packages/google/api_core/bidi.py", line 558, in _recv
return next(call)
File "/root/.local/lib/python3.7/site-packages/google/api_core/grpc_helpers.py", line 109, in __next__
raise exceptions.from_grpc_error(exc) from exc
File "/root/.local/lib/python3.7/site-packages/google/api_core/exceptions.py", line 532, in from_grpc_error
if isinstance(rpc_exc, grpc.Call) or _is_informative_grpc_error(rpc_exc):
AttributeError: 'NoneType' object has no attribute 'Call'"