Reputation: 203
I have been hunting down the answer to this particular answer for 2 days with no luck.
I updated the Firebase CLI per their request, and then it was incompatible with my NodeJS, so I had to update that to NodeJS 16. After I did that, I am not able to deploy my functions anymore to Firebase, and just get this non-descript error:
Cloud Runtime Config is currently experiencing issues,
which is preventing your functions from being deployed.
I have tried everything I can think of..
None of those things have done anything to even change the error message, so I have no idea what is going on or even able to see any logs.
I did try to deploy to our STAGING environment and get a different error
Error: Failed to load environment variables from .env.:
- Error Key GCLOUD_PROJECT is reserved for internal use.
I am not sure what changed with this update, but has anyone else seen/solved this error?
Upvotes: 11
Views: 4201
Reputation: 51
I got this error without changing the node version or project dependencies. Restarting the IDE fixed the issue for me.
Upvotes: 0
Reputation: 51
If you are logged in using gcloud, there a way you can individually update your functions to avoid the runtime error:
gcloud functions deploy api \
--runtime=nodejs18 \
--trigger-http \
--region=us-central1 \
--project=`YOUR_PROJ_ID`
I normally run firebase deploy --only functions:api --project YOUR_PROJ_ID
to deploy my api function, but I got hit with the same error. Even changing firebase tools versions did not work. Hope this helps!
Upvotes: 0
Reputation: 59
I'm having the same issue, and seems to be related to the project data in gcloud/firebase runtime config data, because I can deploy the same code, in other project.
After downgrading firebase-tools to 11.1.0, the deploy worked as before.
Upvotes: 5