question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

firebase deploy painfully slow due to API cloudscheduler.googleapis.com which is not even required

See original GitHub issue

There’s no job scheduler in cloud scheduler then why firebase cli is showing required API cloudscheduler.googleapis.com is enabled whenever I deploy any function? And it’s taking upto a minute to finish this required API…is enabled task.

image

Command: firebase deploy --only functions

Output:

+  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: missing required API cloudbuild.googleapis.com. Enabling now...
+  functions: required API cloudfunctions.googleapis.com is enabled
+  functions: required API cloudbuild.googleapis.com is enabled
i  functions: preparing functions directory for uploading...
i  functions: packaged functions (88.88 KB) for uploading
+  functions: functions folder uploaded successfully
i  functions: updating Node.js 10 function addUsertoDB(asia-east2)...
+  scheduler: required API cloudscheduler.googleapis.com is enabled
+  functions[addUsertoDB(asia-east2)]: Successful update operation. 

[REQUIRED] Environment info

firebase-tools: 8.2.0

Platform: Windows

[REQUIRED] Test case

Run this command to deploy function and observe the output: firebase deploy --only functions

[REQUIRED] Steps to reproduce

  1. make sure there’s no google cloud scheduler task in your project.
  2. Run this command to deploy function : firebase deploy --only functions
  3. observe the output… it is showing scheduler: required API cloudscheduler.googleapis.com is enabled.

[REQUIRED] Expected behavior

output of firebase deploy --only functions shouldn’t contain scheduler: required API cloudscheduler.googleapis.com is enabled

[REQUIRED] Actual behavior

it is showing scheduler: required API cloudscheduler.googleapis.com is enabled

+  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: missing required API cloudbuild.googleapis.com. Enabling now...
+  functions: required API cloudfunctions.googleapis.com is enabled
+  functions: required API cloudbuild.googleapis.com is enabled
i  functions: preparing functions directory for uploading...
i  functions: packaged functions (88.88 KB) for uploading
+  functions: functions folder uploaded successfully
i  functions: updating Node.js 10 function addUsertoDB(asia-east2)...
+  scheduler: required API cloudscheduler.googleapis.com is enabled
+  functions[addUsertoDB(asia-east2)]: Successful update operation. 

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Ashirkhan961commented, Jul 23, 2020

Hello. My solution: Go to path functions ( cd functions) then in the package.json change node version 8 to 10. “engines”: { “node”: “10” }. And run NPM INSTALL. then cd … and deploy again.

Nothing is happening after try this method!

0reactions
RoyalCoder88commented, May 24, 2021

Hi guys, I have Blaze plan and I still get these errors: `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…`

On my second project on Firebase, any ideas why thanks in advance!

Read more comments on GitHub >

github_iconTop Results From Across the Web

firebase deploy is slow and not responding - Stack Overflow
First thought is that I'm behind a company proxy. So I setup a "pure" connection and it's still not connecting. So what is...
Read more >
Troubleshoot Cloud Run issues
This page shows you how to resolve issues with Cloud Run. For other issues not listed below, check to see if they may...
Read more >
Deploying 150+ functions is very slow - Google Groups
We run a large web app whose backend is hosted on Firebase Functions. We have over 150 functions. I understand that the architecture...
Read more >
Quotas and limits | Cloud Functions for Firebase - Google
Quota limits for Firebase CLI deployment · API calls (READ) - 1 call per deployment, no matter how many functions. Limit: 5000 per...
Read more >
How to increase Google Cloud Function startup speed tenfold
While using Firebase hosting, a request initially took about 1 ... This means your cloud function will be slow whenever it doesn't run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found