Sanzio Angeli
Sanzio Angeli

Reputation: 3922

Cannot upload firestore cloud function with wildcard and onDelete trigger?

I have a function with trigger like so:

exports.eventDeleteListener = functions.firestore.document('events/{eid}').onDelete((doc, context) => {

And when I try to upload to Google cloud functions I am met with the following error:

Failed to configure trigger PubSub projects/myprojectstringthingy

I have similar functions with this same document path, but with an onUpdate trigger like so:

exports.isDeletingFlagListener = functions.firestore.document('events/{eid}').onUpdate((change, context) => {

And these all deploy and work perfectly fine. This function has deployed previously. However, after updating node and firebase tools this function will no longer deploy. I believe it has something to do with rules, as per documentation here, however I do not understand why the other function triggers deploy.

If needed, I can paste the entire function in question.

UPDATE: I tried deleting all cloud functions and re deploying. I am getting the same error message for four of the functions now, however they are appearing on firestore console as deployed?

Upvotes: 0

Views: 84

Answers (1)

user2696806
user2696806

Reputation: 166

I have a test project that I successfully deployed functions to yesterday. I deleted them and tried redeploying the exact same ones and got your error as well. So the problem seems to be something at Firebase.

Upvotes: 1

Related Questions