Skip to content

Persistent 400 API error #2141

@chew-z

Description

@chew-z

What happened?

Since yesterday I am unable to use gemini-cli with similar 400 API errors. In essence only 'enum' and 'date-time' are supported for STRING type

[API Error: {"error":{"message":"{\n  \"error\": {\n    \"code\": 400,\n    \"message\": \"* 
  GenerateContentRequest.tools[0].function_declarations[15].parameters.properties[file_paths].items: missing 
  field.\\n* GenerateContentRequest.tools[0].function_declarations[63].parameters.properties[url].format: 
  only 'enum' and 'date-time' are supported for STRING type\\n\",\n    \"status\": \"INVALID_ARGUMENT\"\n  
  }\n}\n","code":400,"status":"Bad Request"}}]

gemini-client-error-Turn.run-sendMessageStream-2025-06-27T07-22-37-705Z.json

What did you expect to happen?

That after asking question I will get assistant action or answer not API error 400.

Client information

Details
$ gemini /about
# paste output here

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionalitypriority/p1Important and should be addressed in the near term.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions