Cloud function not triggered by write event in Firestore

 

Hello team. 

I've created a Cloud Function gen2. I want to trigger it based on write event in FireStore. I have an issue that the cloud function doesn't receive any events. 

Cloud Function located in us-central1 and trigger is global

Firestore located in nam5 location 

Both FireStore and Cloud Function in the same project. I didn't get any error, just event not catched. 

Screenshot 2023-09-26 at 15.28.56.png

Screenshot 2023-09-26 at 15.29.59.png

 

Screenshot 2023-09-26 at 15.29.59.png  

Screenshot 2023-09-26 at 15.33.45.png

 

0 2 453
2 REPLIES 2

Hello @Dmitry2023,

Welcome to the Google Cloud Community!

Take a look at this documentation: Extend Firestore with Cloud Functions (2nd gen).

Check if you're using the right event type, It should be used as:

google.cloud.firestore.document.v1.written

You can also check if you have missed any steps in writing a Firestore-triggered function.

Let me know if it helped, thanks!

Hola, espero puedan responder en español. Tambien tengo configurado una cloud function que se activa al momento de crear un documento en firestore. Funciona tal cual se espera pero me he percatado que algunas veces la cloud function no se dispara. Por qué sucede esto?