gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

API Error - Code 400

Open shawnhale opened this issue 1 year ago • 1 comments

What happened?

This is becoming a big problem an I am unsure of how to fix it:

✕ [API Error: [{ "error": { "code": 400, "message": "Please ensure that the number of function
response parts is equal to the number of function call parts of the function call turn.", "errors": [ { "message": "Please ensure that the number of function
response parts is equal to the number of function call parts of the function call turn.", "domain": "global", "reason": "badRequest" } ], "status": "INVALID_ARGUMENT" } } ]]

What did you expect to happen?

I ask the cli a question and these errors start popping up, many in a row. I eventually have to cancel. The error is not clear. It does not explain to me what is going on, at least not in a way that I understand and the cli doesn't appear to be able to fix it.

Client information

About Gemini CLI │ │ │ │ CLI Version 0.1.7 │ │ Git Commit 55cc809 │ │ Model gemini-2.5-flash │ │ Sandbox no sandbox │ │ OS win32 │ │ Auth Method OAuth

Login information

using the terminal within VS Code with my google account.

Anything else we need to know?

No response

shawnhale avatar Jul 03 '25 14:07 shawnhale

@shawnhale I'm sorry you're running into this. Lets continue the convo over at #3131 if you could provide details to my question that I left there that'd be awesome!

NTaylorMullen avatar Jul 03 '25 15:07 NTaylorMullen