首页 > 解决方案 > Firestore AdminSDK 重试超时

问题描述

我有一个使用 admin sdk 的节点服务器来监听文档的更改,然后写入日志。运行 5 - 10 分钟后出现这些错误。

(node:1088) UnhandledPromiseRejectionWarning: Error: Retry total timeout exceeded before any response was received
    at repeat (C:\connect2sql\node_modules\google-gax\build\src\api_callable.js:215:26)
    at Timeout._onTimeout (C:\connect2sql\node_modules\google-gax\build\src\api_callable.js:243:25)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5)

任何想法如何延长超时或加速 google-gax?

标签: firebasegoogle-cloud-firestore

解决方案


推荐阅读