当试图使用云函数向火药库添加数据时,会出现此错误。
我们从API中获取数据,它运行良好,但是如果将数据添加到防火墙中,则会产生这个错误,
Error detected in fetchInventory {"exceptionInfo":{"type":"Error","message":"4 DEADLINE_EXCEEDED: Deadline exceeded"},"@type":"type.googleapis.com/google.devtools.clouderrorreporting.v1beta1.Insight","errorGroup":"CJ69k8PhgvTNKQ","errorEvent":{"serviceContext":{"resourceType":"cloud_function","service":"fetchInventory"},"message":"Error: 4 DEADLINE_EXCEEDED: Deadline exceeded\n at Object.callErrorFromStatus (/workspace/node_modules/@grpc/grpc-js/build/src/call.js:31:26)\n at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:179:52)\n at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:336:141)\n at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:299:181)\n at /workspace/node_modules/@grpc/grpc-js/build/src/call-stream.js:145:78\n at processTicksAndRejections (internal/process/task_queues.js:79:11)","eventTime":"2021-05-23T10:11:12.748Z"}}我们正在消防局写大约900个文档.
详细解释这个问题会有很大帮助:)
发布于 2021-05-27 06:47:20
该错误可能是通过一次将许多数据写入firestore引起的。错误有时还会出现在错误的互联网连接或代码中的错误上。
尽量将您的写入减少到不超过500个元素,甚至更少。如果这无助于检查你是否有缓慢的连接。如果你仍然看到这个错误,我会让你分享你的一些代码,这样我们就可以检查到。

Yout可以找到更多关于极限这里的信息。
https://stackoverflow.com/questions/67716856
复制相似问题