HTTP Error: 429, Quota exceeded for quota group 'ReadGroup' - firebase

I started to get following quota exceeded error
Error: HTTP Error: 429, Quota exceeded for quota group 'ReadGroup' and limit 'CLIENT_PROJECT-100s' of service 'cloudresourcemanager.googleapis.com' for consumer 'project_number:563584335***'.
when I tried to deploy functions using firebase-cli
firebase deploy --only functions --token $FIREBASE_TOKEN
I changed the value of FIREBASE_TOKEN thinking that it might have expired. deploy worked for one time after changing token but then again cli tools again started giving above error. Also, I checked quotas but couldn't find any value that exceed the quota limit. My project is on blaze plan (pay as you go).
Maybe I'm missing something? Could anyone help me out on when exactly this error comes and how to fix it?

This is a known problem being addressed by the Firebase team.
In the future, when you have a problem deploying with the Firebase CLI, you should file a bug report with Firebase support so they can collect information.

Related

firebase functions still dont work after i verified my billing stuff

when I try deploying my app this outputs:
Error: Your project quiz-byte must be on the Blaze (pay-as-you-go) plan to complete this command. Required API cloudbuild.googleapis.com can't be enabled until the upgrade is complete. To upgrade, visit the following URL:
I did verify my billing options, but they keep asking me to pay for their paid plan.
Am I supposed to wait some time or something?

Firebase functions emulator requesting external network resource: computeMetadata

I have the firebase emulator running in a docker container locally for testing. The emulator includes everything I'm using for my app (firestore, auth, functions, storage) so that I can develop and test independently of the production environment.
However, I'm getting these warnings which are making me nervous:
functions: Beginning execution of "myFunction"
⚠ External network resource requested!
- URL: "http://---.---.---.---/computeMetadata/v1/instance"
- Be careful, this may be a production service.
I don't know what that URL is? Does it mean I've misconfigured something somewhere?
I'm also getting these warnings:
⚠ emulators: You are not currently authenticated so some features may not work correctly. Please run firebase login to authenticate the CLI.
⚠ functions: You are not signed in to the Firebase CLI. If you have authorized this machine using gcloud application-default credentials those may be discovered and used to access production services.
⚠ functions: Unable to fetch project Admin SDK configuration, Admin SDK behavior in Cloud Functions emulator may be incorrect.
But I don't think I want to authenticate, right? I don't want to touch anything to do with the live project on production while testing locally. Can I safely ignore these, or is there a good reason to authenticate?
The warnings are indicative that there had some issues while initialization during the setup for emulators .
Make sure that the emulator is installed by the following command: firebase setup:emulators:firestore, for this you can refer Documentation.
Deploy your function in the firebase in order to get recognized. you can refer to the Documentation using firebase deploy --only functions
Also to be sure please check your Firebase json and see if the local host is configured and not the production host,just to be sure.
For further reference you can follow up the stackoverflow thread Docker authentication issueand Firestore emulatorwhere a similar issue has been raised by other users which might be helpful.

Get rid of annoying logs by Firebase function "this may be a production service" & "External network resource requested"

When running a Firebase function, my logs are very noisy mostly because of those 2 messages
Be careful, this may be a production service.
⚠ External network resource requested!
I know I am running a production service, and yes I am requesting an external ressource 😅 can I disable them?
Thanks
Normally using --quiet would silence this message, however because there are so many emulators, the Firebase team couldn't reach a consensus on whether to allow this to be silenced when used with firebase emulators:start (see firebase-tools Issue #2859).
The official stance on this is to set the logs filter to only show "user" logs using the Emulator Suite UI's Logs Viewer and let the regular log feed log everything.

With the free account of Firebase is it possible to backup firestore? How?

I have Spark plan (free) and I would like to backup the Firestore Data. I followed this Tutorial but it returns this error:
ERROR: (gcloud.firestore.export) PERMISSION_DENIED: This API method requires billing to be enabled. Please enable billing on project by visiting https://console.developers.google.com/billing/ then retry. If you enabled billing for this project recently, wait a few minutes for the action to propagate to our systems and retry.
Error: Process completed with exit code 1.
Is there a way to to backup it WITHOUT UPGRADING TO BLAZE? If yes, how?
The error message is pretty explicit:
This API method requires billing to be enabled.
The documentation on exporting data also has this note:
Firebase projects must be on the Blaze plan to use the managed export and import feature. Enabling billing for the Google Cloud automatically upgrades your Firebase project to the Blaze plan.
So it looks like your project will need to be on the Blaze plan to use scheduled exports.

Permission denied error when a batch of users are subscribed to a topic in Firebase

We're migrating our customers from GCM to Firebase for Android push notifications. Because of this, we need to import the topics our users subscribed to into Firebase. We have a Java backend and we're using the firebase admin library. We are calling FirebaseMessaging.subscribeToTopic for that.
It worked fine for most of our smaller customers. However, it fails for our bigger ones. We get a "permission denied" error. Unfortunately this error is not documented (and actually unsupported by the library which turns it into an "unknown error"), so I'm not too sure what to do. Could it be that we have to pay something when larger amounts of topic subscriptions are imported?
It turns out that you will get this error if you use the private key of a wrong firebase project. This is undocumented at the time of writing this answer.

Resources