continue icon indicating copy to clipboard operation
continue copied to clipboard

Error: Gemini 2.0 Flash - Unknown error

Open ThangNH-BKL opened this issue 11 months ago • 3 comments

Error Details

Model: Gemini 2.0 Flash Provider: gemini Status Code: N/A

Error Output

{"error":{"message":"{\n  \"error\": {\n    \"code\": 429,\n    \"message\": \"You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/usage%3Ftab=rate-limit. \\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.0-flash\\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.0-flash\\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_input_token_count, limit: 0, model: gemini-2.0-flash\\nPlease retry in 57.499294751s.\",\n    \"status\": \"RESOURCE_EXHAUSTED\",\n    \"details\": [\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        \"@type\": \"type.googleapis.com/google.rpc.QuotaFailure\",\n        \"violations\": [\n          {\n            \"quotaMetric\": \"generativelanguage.googleapis.com/generate_content_free_tier_requests\",\n            \"quotaId\": \"GenerateRequestsPerDayPerProjectPerModel-FreeTier\",\n            \"quotaDimensions\": {\n              \"model\": \"gemini-2.0-flash\",\n              \"location\": \"global\"\n            }\n          },\n          {\n            \"quotaMetric\": \"generativelanguage.googleapis.com/generate_content_free_tier_requests\",\n            \"quotaId\": \"GenerateRequestsPerMinutePerProjectPerModel-FreeTier\",\n            \"quotaDimensions\": {\n              \"location\": \"global\",\n              \"model\": \"gemini-2.0-flash\"\n            }\n          },\n          {\n            \"quotaMetric\": \"generativelanguage.googleapis.com/generate_content_free_tier_input_token_count\",\n            \"quotaId\": \"GenerateContentInputTokensPerModelPerMinute-FreeTier\",\n            \"quotaDimensions\": {\n              \"location\": \"global\",\n              \"model\": \"gemini-2.0-flash\"\n            }\n          }\n        ]\n      },\n      {\n        \"@type\": \"type.googleapis.com/google.rpc.RetryInfo\",\n        \"retryDelay\": \"57s\"\n      }\n    ]\n  }\n}\n","code":429,"status":"Too Many Requests"}}

Additional Context Please add any additional context about the error here

ThangNH-BKL avatar Jan 02 '26 04:01 ThangNH-BKL

Related/Duplicate Issues

Duplicate issues with the same error:

  • #9330 - Error: Gemini 2.0 Flash - Unknown error
  • #9262 - Error: Gemini 2.0 Flash - Unknown error

Similar issues with other Gemini models:

  • #9239 - Error: Gemini 2.5 Pro - Unknown error
  • #9251 - Error: Gemini 2.5 Pro - Unknown error
  • #9153 - Error: Gemini 2.5 Pro - Unknown error

Related Gemini issues:

  • #9319 - Gemini exception
  • #9344 - whenever i try to select gemini model it crashes
  • #9356 - Cannot Change Models in Google Gemini API
  • #9208 - Cannot add new google gemini model
  • #8980 - 400 Error with Gemini 3 Pro via OpenRouter when calling tools
  • #7241 - Bug: Intermittent "Unexpected response format" error on Gemini models with inconsistent state logging

Previously closed similar issues:

  • #5252 - builtin_edit_existing_file fails with Invalid apply state when using Gemini 2.0 Flash
  • #6831 - Gemini 2.5 Flash and Pro failing with Error handling model response

continue avatar Jan 02 '26 04:01 continue

@NguyenHuuThang1997 The 429s here include provider‑specific quota details and retry hints, but without a per‑request artifact it’s difficult to tell whether the failure happened before first token, during input processing, or after partial streaming. For these quota/429 cases, AI Badgr receipts (stage of failure, retry headers seen, tokens/cost) make post‑incident analysis straightforward across IDEs and gateways.

ghost avatar Jan 04 '26 22:01 ghost

@NguyenHuuThang1997 this is an error on the Gemini side, you will need to update your gemini API key or org rate limits to fix this

RomneyDa avatar Jan 14 '26 21:01 RomneyDa