Closed BetterAutomations closed 3 years ago
Hi @BetterAutomations, can you take a snapshot of your firebase functions tab?
Hi @BetterAutomations, I saw that you have api-user
in it. Is it the old one? Can you add dungnq@itbox4vn.com to your firebase dev environment, I can help to debug it.
Yes as mentioned above, I created tried creating the api-user function first in the console. I have added your email. Kindly note any changes so that I can make the same changes in Prod.
Hi @BetterAutomations, can you go to https://console.firebase.google.com and add my email there. I can see your google cloud, but not in firebase.
Added
Hi @BetterAutomations, I saw that you have regions in your config. There is a typo. I should be us-central1
not us-central
. And for one region, you don't need to set it at all. You can unset it.
firebase functions:config:unset regions --project coop-dev-805ec
I edited the regions & redeploy them. It works.
Oh thank you. Where was this typo introduced? I don't recall typing that. I did a recursive search and couldn't find on my hard drive where that was set.
I'm unable to repeat your success. Please advise.
C:\GCP.fbase_wpress\functions>firebase deploy --only functions --project coop-dev-805ec
=== Deploying to 'coop-dev-805ec'...
i deploying functions
+ functions: Finished running predeploy script.
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
+ functions: required API cloudbuild.googleapis.com is enabled
+ functions: required API cloudfunctions.googleapis.com is enabled
i functions: preparing functions directory for uploading...
i functions: packaged functions (228.73 KB) for uploading
+ functions: functions folder uploaded successfully
i functions: updating Node.js 12 function api-user(us-central1)...
i functions: updating Node.js 12 function api-database(us-central1)...
i functions: updating Node.js 12 function api-message(us-central1)...
+ functions[api-message(us-central1)]: Successful update operation.
+ functions[api-database(us-central1)]: Successful update operation.
Functions deploy had errors with the following functions:
api-user(us-central1)
To try redeploying those functions, run:
firebase deploy --only "functions:api.user"
To continue deploying other features (such as database), run:
firebase deploy --except functions
Error: Functions did not deploy properly.
C:\GCP.fbase_wpress\functions>firebase functions:config:unset regions --project coop-dev-805ec
+ Environment updated.
Please deploy your functions for the change to take effect by running firebase deploy --only functions
C:\GCP.fbase_wpress\functions>firebase deploy --only "functions:api.user"
=== Deploying to 'coop-dev-805ec'...
i deploying functions
+ functions: Finished running predeploy script.
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
+ functions: required API cloudbuild.googleapis.com is enabled
+ functions: required API cloudfunctions.googleapis.com is enabled
i functions: preparing functions directory for uploading...
i functions: packaged functions (228.73 KB) for uploading
+ functions: functions folder uploaded successfully
i functions: updating Node.js 12 function api-user(us-central1)...
Functions deploy had errors with the following functions:
api-user(us-central1)
To try redeploying those functions, run:
firebase deploy --only "functions:api.user"
To continue deploying other features (such as database), run:
firebase deploy --except functions
Error: Functions did not deploy properly.
C:\GCP.fbase_wpress\functions>
Hi @BetterAutomations, please delete your existing function in Firebase and try to deploy it again.
Thank you, that seemed to work.
Describe the bug Unable to deploy functions, I get the error below. I had noticed the wrong project ID in .firebaserc and package.json but updating that to match my own did not help. I also tried creating the api-user function first in the console, no good.
To Reproduce Steps to reproduce the behavior:
Expected behavior Should upload the functions to GCP
Screenshots Version 2.4.0
Screenshots No screenshot
Desktop (please complete the following information):
Additional context