Firebase cloud function trigger taking around 4 minutes to update a record
I have a cloud function project where I use Firestore as the database. I have a function that works as a RESTapi. I do also have a cloud function trigger which will run on document create.
Random document from Firestore code occasionally breaks in a Firebase function
I have the following code that gets a random Firestore document given some parameters
Firebase Functions: onDocumentCreated retry not firing
I’ve setup a triggered function in Firebase using the onDocumentCreated trigger and noticed there is an option to set a boolean for retry. It is my assumption that this would result in a retry if the function throws an error. So I’ve setup the following test function and am running it with the local emulator. Unfortunately I have not been able to get the function to be called multiple times even though I see the error in the logs.
Firebase Firestore is missing loadbundle and namedQuery method
This is my code, however, the firebase function project is complaining that loadbundle and namedQuery methods are missing.
npm run build with an old service account json file does not build new code. [firebase cloud functions]
I have an old service account configured in my admin app like this.
Trigger inside another trigger is not triggered for a specific document
I have a situation in which I need to schedule a periodic timer when a document is created, and when a specific field is updated in that document, I need to cancel its timer.
Firebase Cloud function not working well with runTransactions
I’ve got a little problem with my runTransactions
using the Cloud Functions (JavaScript).
My app has a startTime
, completeTime
and deleteTime
. So when the time reaches “completeTime”, it adds +1 to a field in the Firestore as shown in the CODE . This works well.