Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to troubleshoot Firestore "Total timeout" from within a Cloud Function?

I have several Cloud Functions running that interact with Firebase.

All are working normally, reading and writing to Firebase, except one which consistently started getting the error:

Total timeout of API google.firestore.v1.Firestore exceeded 60000 milliseconds before any response...

I checked the section for errors and logs. There's no indication of a problem, or nothing descriptive at least. How can I troubleshoot this issue?   

Update: memory usage started climbing right when the issue started, lasted about 4 hours (logging the above error the whole time), hit an OOM error at 100%, and now the cloud function has resumed successfully. But I am no better off without any information as to what happened. What can I do?


Screen Shot 2023-05-30 at 7.39.30 PM.pngScreen Shot 2023-05-30 at 9.26.19 PM.png

0 1 1,994
1 REPLY 1

Hi @richgcloud,

Welcome to the Google Cloud Community!

  1. Check the Cloud Firestore Activity.
  2. Check the Cloud Function's logs to know the details about the error, as well the line 
  3. You can also get in touch with Google Cloud Support if the above options don't work.

Let me know if it helped, thanks!