How to fix NodeJS Firebase AdminSDK GoogleError?

Viewed 217

NodeJS Firebase AdminSDK GoogleError: Total timeout of API google.firestore.v1.Firestore exceeded 600000 milliseconds before any response was received

I am running a Node script to commit batches to the firestore. After 5-10 minutes of running the script locally, this error is returned:

GoogleError: Total timeout of API google.firestore.v1.Firestore exceeded 600000 milliseconds before any response was received.
    at repeat (E:\Personal\NodeJs\Scraper\node_modules\google-gax\build\src\normalCalls\retries.js:66:31)
    at Timeout._onTimeout (E:\Personal\NodeJs\Scraper\node_modules\google-gax\build\src\normalCalls\retries.js:101:25)
    at listOnTimeout (internal/timers.js:557:17)
    at processTimers (internal/timers.js:500:7)
Caused by: Error
    at WriteBatch.commit (E:\Personal\NodeJs\Scraper\node_modules\@google-cloud\firestore\build\src\write-batch.js:417:23)
    at upload (E:\Personal\NodeJs\Scraper\lib\index.js:127:23) {
  code: 4
}

It is returned randomly whilst running the script so it is not an issue from the code.

0 Answers
Related