All I am trying to deploy are some cloud functions. I don't even deploy all at once. I use the --only functions:NAME syntax. But I keep getting this consistently:
Error: Request to https://firestore.googleapis.com/v1/projects/PROJECT_NAME/databases/(default) had HTTP Error: 429, Quota exceeded for quota metric 'Database operation requests' and limit 'Database Operations Per Minute' of service 'firestore.googleapis.com' for consumer 'project_number:XYZ'.
Again, I am just trying to deploy. I am not doing anything else. If I were trying to deploy ALL funcs at once, I'd understand getting this. But even 1 or 2 functions at a time results in this error. What am I doing wrong? Thanks.
EDIT: I am on the Blaze plan in firebase as well.
Hi @ocean_dev,
Welcome to Google Cloud Community!
You're hitting a Firestore quota because each function deploy triggers 1 WRITE API call, and the limit is 80 per 100 seconds. Even with --only
, multiple quick deployments can hit that cap fast.
To confirm, check the Quotas page in the Google Cloud Console (IAM & Admin > Quotas). Since you're on the Blaze plan, you can also request a quota increase there. Spacing out deployments a bit can help too.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
Thank you for responding. Your answer makes sense, but the only thing is I have definitely not deployed quickly enough where I get soo many writes within 100 seconds. Maybe I deployed 2 functions then in a few hours I might do another couple. And again, I only deploy 1 or 2 at a time, not all of them. So I still don't understand why I am hitting the quota. Speaking of which, I don't really see a place to exactly request quota increase. We're a startup using GCP for pretty much everything. Where do I request quota increase. Thank you very much for your time.
I am facing the same issue.
I'm also on the blaze plan, deploying one trigger function and facing the same issue.
I see that the limit is 60 on my side. I can't see where to request the quota increase
@mcbsalceda Thank you for responding. Your answer makes sense, but the only thing is I have definitely not deployed quickly enough where I get soo many writes within 100 seconds. Maybe I deployed 2 functions then in a few hours I might do another couple. And again, I only deploy 1 or 2 at a time, not all of them. So I still don't understand why I am hitting the quota. Speaking of which, I don't really see a place to exactly request quota increase. We're a startup using GCP for pretty much everything. Where do I request quota increase. Thank you very much for your time.