Firebase Cloud Feature Deployment Error

irregularly deploying firebase is stuck in this log:

i functions: updating function [FUNCTION NAME]... 

After canceling the deployment and retrying, it gives the following error message:

 âš  functions: failed to update function resetBadgeCount âš  functions: HTTP Error: 400, An operation on function [FUNCTION NAME] in region us-central1 in project [PROJECT NAME] is already in progress. Please try again later. 

Thus, it seams as if the deployment were stuck and stored in the pipeline, blocking further deployments. After a while, I turned on the features again. But is there any explanation for this? Or maybe even a word?

+19
source share
4 answers

Go to the Google Cloud Functions Console and see if there is a red exclamation mark against your function. Then select this particular function and try uninstalling. after it is removed from there, you can install it again. if it shows a counter, then wait until it shows a red mark.

+24
source

You can temporarily rename your function:

$ firebase deployment - features only

...

i function: delete function onSameDataChanged ...

i functions: creating the function onSameDataChanged 1 ...

...

✔ features: all features successfully deployed!

✔ Deployment complete!

+3
source
  1. Comment or cut your function
  2. deployment
  3. Uncomment or paste the function back
  4. Rename function
  5. deployment
  6. Rename function back
  7. deployment
0
source

just copy your index.js somewhere else and remove the function from the firebasa console.

  1. firebase init -and overwrite the whole file again
  2. text index.js passed again
  3. expand...
0
source

Source: https://habr.com/ru/post/1268914/


All Articles