gemini-cli
gemini-cli copied to clipboard
BUG: Api Resource Limit Errors swallowed in non-interactive mode
Describe the bug While working on a feature today i started getting 429's and 500's. And the api started telling me i was downgraded to flash. In interactive mode I saw the below error message. In non-interactive mode I simply stopped getting responses and it seems we were swallowing those errors.
Additional context
✕ [API Error: got status: 429 Too Many Requests. {"error":{"message":"{\n \"error\": {\n \"code\": 429,\n \"message\": \"You exceeded
your current quota. Go to https://aistudio.google.com/apikey to upgrade your quota tier, or submit a quota increase request in
https://ai.google.dev/gemini-api/docs/rate-limits#request-rate-limit-increase\",\n \"status\": \"RESOURCE_EXHAUSTED\",\n \"details\":
[\n {\n \"@type\": \"type.googleapis.com/google.rpc.QuotaFailure\",\n \"violations\": [\n {\n
\"quotaMetric\": \"generativelanguage.googleapis.com/generate_requests_per_model_per_day\",\n \"quotaId\":
\"GenerateRequestsPerDayPerProjectPerModel\"\n }\n ]\n },\n {\n \"@type\":
\"type.googleapis.com/google.rpc.Help\",\n \"links\": [\n {\n \"description\": \"Learn more about Gemini API
quotas\",\n \"url\": \"https://ai.google.dev/gemini-api/docs/rate-limits\"\n }\n ]\n }\n ]\n
}\n}\n","code":429,"status":"Too Many Requests"}}]```