Jotting one man's journey through software development, programming, and technology
◀️ Home
If you encounter an error where your active GCP project does not match your Application Default Credentials (ADC) quota project, follow these steps:
You changed your GCP project using:
gcloud config set project locaria-dev-finance-reports
However, you received this warning:
WARNING: Your active project does not match the quota project in your local Application Default Credentials file. This might result in unexpected quota issues.
Besides causing quota or billing issues, this can prevent you from running certain scripts.
gcloud config set project your-project-id
Verify running:
gcloud config get-value project
Fix the quota mismatch:
gcloud auth application-default set-quota-project your-project-id
Check if the quota project is updated:
gcloud auth application-default print-access-token
If the issue persists, re-authenticate:
gcloud auth application-default login