当我从firestore数据库查询任何数据时,我遇到了这个问题。
我怀疑我的网络端有什么东西导致了这个问题,就像在云端一样,我可以看到有一些读取,这表明查询正在传递给firebase,但由于某种原因它无法返回到我的计算机。
我还没有在我的工作网络上测试过这个脚本,这个脚本以前在那里工作过,但是现在它无法在我的家庭网络中工作。
特别是错误消息的这一部分告诉我,在我的网络端存在这样的原因。
_MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "The datastore operation timed out, or the data was temporarily unavailable."
debug_error_string = "{"created":"@1627374501.775000000","description":"Error received from peer ipv4:142.251.10.95:443","file":"src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"The datastore operation timed out, or the data was temporarily unavailable.","grpc_status":14}"
>
这是完整的错误消息。
---------------------------------------------------------------------------
_MultiThreadedRendezvous Traceback (most recent call last)
~\anaconda3\envs\batteryhealth\lib\site-packages\google\api_core\grpc_helpers.py in next(self)
106 return result
--> 107 return six.next(self._wrapped)
108 except grpc.RpcError as exc:
~\anaconda3\envs\batteryhealth\lib\site-packages\grpc\_channel.py in __next__(self)
425 def __next__(self):
--> 426 return self._next()
427
~\anaconda3\envs\batteryhealth\lib\site-packages\grpc\_channel.py in _next(self)
825 elif self._state.code is not None:
--> 826 raise self
827
_MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "The datastore operation timed out, or the data was temporarily unavailable."
debug_error_string = "{"created":"@1627374501.775000000","description":"Error received from peer ipv4:142.251.10.95:443","file":"src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"The datastore operation timed out, or the data was temporarily unavailable.","grpc_status":14}"
>
The above exception was the direct cause of the following exception:
ServiceUnavailable Traceback (most recent call last)
<ipython-input-14-1ac2a353a709> in <module>
3 # To use immediately without saving to csv
4 data1 = streams[0]
----> 5 dict_of_charge = list(map(stream_parser, data1.stream()))
6 df = pd.DataFrame(dict_of_charge)
~\anaconda3\envs\batteryhealth\lib\site-packages\google\cloud\firestore_v1\query.py in stream(self, transaction, retry, timeout)
210 )
211
--> 212 for response in response_iterator:
213 if self._all_descendants:
214 snapshot = _collection_group_query_response_to_snapshot(
~\anaconda3\envs\batteryhealth\lib\site-packages\google\api_core\grpc_helpers.py in next(self)
108 except grpc.RpcError as exc:
109 # If the stream has already returned data, we cannot recover here.
--> 110 six.raise_from(exceptions.from_grpc_error(exc), exc)
111
112 # Alias needed for Python 2/3 support.
~\anaconda3\envs\batteryhealth\lib\site-packages\six.py in raise_from(value, from_value)
ServiceUnavailable: 503 The datastore operation timed out, or the data was temporarily unavailable.
暂无答案!
目前还没有任何答案,快来回答吧!