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

BUG NIGHTMARE - ✕ [API Error: Unexpected line format in response: ,]

Open Neinndall opened this issue 1 year ago • 4 comments

What happened?

Every time I start a conversation with GEMINI, I don't know if it's because of some ""," added to the conversation, but it stops the conversation and the error appears and I have to rewrite the same thing to GEMINI, this is tedious, and the error appears many times during the conversation, this had not happened before.

What did you expect to happen?

not error api

Client information

About Gemini CLI

CLI Version 0.7.0-preview.0
Model gemini-2.5-pro
Sandbox no sandbox
OS win32
Auth Method OAuth

Login information

No response

Anything else we need to know?

No response

Neinndall avatar Sep 24 '25 14:09 Neinndall

yeah i think this is the cause the , is breaking it, as soon i remove it works thanks

geomorillo avatar Sep 24 '25 14:09 geomorillo

yeah i think this is the cause the , is breaking it, as soon i remove it works thanks

I thought that as well, but unfortunately, after I stopped using commas in my next prompts, the error still occurred.

here's my conversation: ✦ Yes, both buttons have the exact same styling properties, including identical padding (px-3 py-1.5) and font size (text-sm).

However, their final rendered widths are slightly different because the text inside them ("Prihlásenie" and "Registrácia") has a different number of characters.

If you'd like them to be the exact same width, I can apply a fixed width to both. Should I do that?

╭─────────╮ │ > yes │ ╰─────────╯

✕ [API Error: Unexpected line format in response: ,]

│ About Gemini CLI │ │ │ │ CLI Version 0.6.0 │ │ Git Commit 7e1bce72 │ | * Session ID: 739782fd-6b84-4831-959b-4398b24eaaf6 | │ Model gemini-2.5-pro │ │ Sandbox no sandbox │ │ OS win32 │ │ Auth Method OAuth │ │ IDE Client VS Code

selfbeatz avatar Sep 24 '25 14:09 selfbeatz

seeing the same issue

Image

Infinnerty avatar Sep 24 '25 14:09 Infinnerty

Same for every single prompt

Is google interested in fixing this bug or what? I am using 0.7.0 on MacOS 15.6 - authentication via oauth. Here's the error:

{ "error": { "message": "Unexpected line format in response: ,", "stack": "Error: Unexpected line format in response: ,\n at file:///Users/shanna.murry/.nodenv/versions/20.19.3/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/code_assist/server.js:128:27\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async file:///Users/shanna.murry/.nodenv/versions/20.19.3/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/code_assist/server.js:27:30\n at async LoggingContentGenerator.loggingStreamWrapper (file:///Users/shanna.murry/.nodenv/versions/20.19.3/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/core/loggingContentGenerator.js:70:30)\n at async GeminiChat.stopBeforeSecondMutator (file:///Users/shanna.murry/.nodenv/versions/20.19.3/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/core/geminiChat.js:480:26)\n at async GeminiChat.processStreamResponse (file:///Users/shanna.murry/.nodenv/versions/20.19.3/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/core/geminiChat.js:374:26)\n at async file:///Users/shanna.murry/.nodenv/versions/20.19.3/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/core/geminiChat.js:215:42\n at async Turn.run (file:///Users/shanna.murry/.nodenv/versions/20.19.3/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/core/turn.js:59:30)\n at async GeminiClient.sendMessageStream (file:///Users/shanna.murry/.nodenv/versions/20.19.3/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/core/client.js:405:26)\n at async file:///Users/shanna.murry/.nodenv/versions/20.19.3/lib/node_modules/@google/gemini-cli/dist/src/ui/hooks/useGeminiStream.js:401:26" },

shannamurry avatar Oct 03 '25 14:10 shannamurry