-
-
Notifications
You must be signed in to change notification settings - Fork 4
Debugging
- Make sure you have Java installed
- You can install it here JDK
- After extracting it you will just need to extract it somewhere and then add the bin folder to your path in environment variables
- When switching between live and emulator make sure to clear your browser cache. It's possible that with requests cached in your browser you'll see documents from live environment even when working from emulator.
Error showing up when running npm run deploy:rules
Your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the firebaserules.googleapis.com. We recommend configuring the billing/quota_project setting in gcloud or using a service account through the auth/impersonate_service_account setting. For more information about service accounts and how to use them in your application, see https://cloud.google.com/docs/authentication/. If you are getting this error with curl or similar tools, you may need to specify 'X-Goog-User-Project' HTTP header for quota and billing purposes. For more information regarding 'X-Goog-User-Project' header, please check https://cloud.google.com/apis/docs/system-parameters.
This error message is caused by using User Credentials when you setup the Cloud SDK. Typically this is done using the command gcloud auth login. Create a service account and set up the Cloud SDK to use the service account and run the following command.
gcloud auth activate-service-account test@development-123456.iam.gserviceaccount.com --key-file=/fullpath/service-account.json