Skip to content

short, simple questions causing invalid argument / bad request errors #2706

@e-b

Description

@e-b

What happened?

This is in- and out-put:

/about

╭───────────────────────────────────────────────────────────────────────╮
│ │
│ About Gemini CLI │
│ │
│ CLI Version 0.1.7 │
│ Git Commit 55cc809 │
│ Model gemini-2.5-pro │
│ Sandbox no sandbox │
│ OS darwin │
│ Auth Method gemini-api-key │
│ │
╰───────────────────────────────────────────────────────────────────────╯

research EV battery degradation when long term parking

✕ [API Error: {"error":{"message":"{\n "error": {\n "code": 400,\n "message": "*
GenerateContentRequest.tools[0].function_declarations[12].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[13].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[15].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[16].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[17].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[18].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[19].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[20].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[21].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[22].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[23].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[24].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[25].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[26].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[27].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[28].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[29].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[30].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[31].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[32].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[33].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[34].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[35].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[36].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[37].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[38].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[39].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[40].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[41].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[42].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[43].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[44].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[45].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[46].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[47].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[48].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[49].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[50].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[51].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[52].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[53].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[54].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[55].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[56].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type\n*
GenerateContentRequest.tools[0].function_declarations[57].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"}}]

What did you expect to happen?

Receiving an answer of what ever quality but not an invalid argument error. I don't understand what is bod about this request.

Client information

  • CLI Version: 0.1.7
  • Git Commit: 55cc809
  • Operating System: darwin v22.17.0; OSX 15.5, M4 chip
  • Sandbox Environment: no sandbox
  • Model Version: gemini-2.5-pro
  • Memory Usage: 126.0 MB

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/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