continue icon indicating copy to clipboard operation
continue copied to clipboard

Error: Gemini 2.5 Pro - Unknown error

Open pipox101w-blip opened this issue 11 months ago • 3 comments

Error Details

Model: Gemini 2.5 Pro Provider: gemini Status Code: N/A

Error Output

{"error":{"message":"{\n  \"error\": {\n    \"code\": 400,\n    \"message\": \"API key not valid. Please pass a valid API key.\",\n    \"status\": \"INVALID_ARGUMENT\",\n    \"details\": [\n      {\n        \"@type\": \"type.googleapis.com/google.rpc.ErrorInfo\",\n        \"reason\": \"API_KEY_INVALID\",\n        \"domain\": \"googleapis.com\",\n        \"metadata\": {\n          \"service\": \"generativelanguage.googleapis.com\"\n        }\n      },\n      {\n        \"@type\": \"type.googleapis.com/google.rpc.LocalizedMessage\",\n        \"locale\": \"en-US\",\n        \"message\": \"API key not valid. Please pass a valid API key.\"\n      }\n    ]\n  }\n}\n","code":400,"status":"Bad Request"}}

Additional Context Please add any additional context about the error here

pipox101w-blip avatar Dec 21 '25 19:12 pipox101w-blip

https://github.com/continuedev/continue/issues/new/choose

pipox101w-blip avatar Dec 21 '25 19:12 pipox101w-blip

Related/Duplicate Issues

Exact duplicates with same error:

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

Related Gemini model selection/configuration issues:

  • #9208 - Cannot add new google gemini model
  • #9163 - "Cannot read properties of undefined (reading 'title')" when trying to select Google models
  • #9058 - [Bug] Uncaught TypeError: Cannot read properties of undefined (reading 'title') when switching models
  • #8993 - 'title' being read as undefined

Related Gemini error issues:

  • #7241 - Bug: Intermittent "Unexpected response format" error on Gemini models with inconsistent state logging
  • #7849 - Gemini 2.5 Flash - unable to submit request because it has a stopSequences value of 10 but the supported range is from 1 to 6
  • #8980 - 400 Error with Gemini 3 Pro via OpenRouter when calling tools

continue avatar Dec 21 '25 19:12 continue

Hi @pipox101w-blip, this is an issue with your Gemini API key, you will need to use a different key or address this in the google console.

RomneyDa avatar Jan 14 '26 21:01 RomneyDa