1
votes

I am facing problem with deploying cloud function in firebase CLI. I have cloned the "functions-samples" repo from github and then ran the deploy command in "quickstarts/big-ben" project of this repo. I ran these following command as instructed:

cd functions
npm install
cd ..
firebase deploy

After that my I got this output in my power shell

=== Deploying to 'fire-campus'...

i  deploying functions, hosting
i  functions: ensuring necessary APIs are enabled...
i  runtimeconfig: ensuring necessary APIs are enabled...
+  runtimeconfig: all necessary APIs are enabled
!  functions: missing necessary APIs. Enabling now...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...
i  functions: waiting for APIs to activate...

Error: Timed out waiting for APIs to enable. Please try again in a few minutes.

I have enabled these APIs in google cloud platform- Firebase Remote Congig API, Firebase Rules API, Google Cloud RuntimeConfig API.

What else I need to enable to activate the required APIs in firebase CLI? Do I need to signup for google cloud function. I dont have payment option that requires in the signup form.

2
I just encountered this issue a minute ago and after trying again, it resolved on it's own. It might be related to some issues Google's Cloud Platform has been having tonight.ABabin
So I don't need to sign up for cloud function in google cloud platform, right? @ABabingourab yousuf basir
Nope. I saw the repeated functions: waiting for APIs to activate... lines after trying to deploy an app for the first time, and after trying again 5 minutes later, it went through.ABabin
OK. Thanks :) I am trying here from last night. :pgourab yousuf basir
Sometimes it just takes a while to activate.Doug Stevenson

2 Answers

2
votes

Problem solved automatically after two days. May be this was a temporary problem. There is no need to sign up for the google cloud function in google cloud platform. I guess that service has no relation with firebase cloud function.

1
votes

I had same problem. I just used a proxy in my terminal as the following:

export http_proxy=YOUR_PROXY
export https_proxy=YOUR_PROXY

After than the problem solved. Note that your proxy should be http(s) and socks not working.