You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CLI Crash: [API Error: Cannot read properties of undefined (reading 'error')] triggered by AbortError #14160
While using the CLI, the application crashed with an "API Error". Looking at the Debug Console, it appears to be triggered by an
AbortError (The user aborted a request), followed by a React state update error (Cannot update a component...).
Error Output:
1 > ✕ [API Error: Cannot read properties of undefined (reading 'error')]
2 >
3 > Debug Console:
4 > error: AbortError: The user aborted a request.
5 > at abort (...\node-fetch\lib\index.js:1458:16)
6 > ...
7 > ✖ Cannot update a component (`InputPrompt`) while rendering a different component (`AppContainer`).
8 > ```
9
10 ---
What did you expect to happen?
The CLI should handle the request abort/cancellation gracefully without crashing the entire application or throwing an unhandled
exception regarding undefined properties.
1 > error: AbortError: The user aborted a request.
2 > at abort (C:\ProgramData\nvm\v24.11.1\node_modules\@google\gemini-cli\node_modules\node-fetch\lib\index.js:1458:16)
3 > at AbortSignal.abortAndFinalize
4 > (C:\ProgramData\nvm\v24.11.1\node_modules\@google\gemini-cli\node_modules\node-fetch\lib\index.js:1473:4)
5 > at [nodejs.internal.kHybridDispatch] (node:internal/event_target:845:20)
6 > at AbortSignal.dispatchEvent (node:internal/event_target:778:26)
7 > at runAbort (node:internal/abort_controller:488:10)
8 > at abortSignal (node:internal/abort_controller:459:3)
9 > at AbortController.abort (node:internal/abort_controller:507:5)
10 > at file:///C:/ProgramData/nvm/v24.11.1/node_modules/@google/gemini-cli/dist/src/ui/hooks/useGeminiStream.js:160:36
11 > at file:///C:/ProgramData/nvm/v24.11.1/node_modules/@google/gemini-cli/dist/src/ui/AppContainer.js:763:35
12 > at file:///C:/ProgramData/nvm/v24.11.1/node_modules/@google/gemini-cli/dist/src/ui/contexts/KeypressContext.js:499:77
13 > ```
14
15 ---
16
changed the title [-][BUG] Erro "Cannot read properties of undefined (reading 'error')" após AbortError na CLI[/-][+]CLI Crash: [API Error: Cannot read properties of undefined (reading 'error')] triggered by AbortError[/+]on Nov 30, 2025
Activity
gemini-cli commentedon Nov 30, 2025
Found possible duplicate issues:
InputPrompt) while rendering a different component (AppContainer). To locate the bad setState() call inside │ │AppContainer, follow the stack trace as described in https://react.dev/link/setstate-in-render #13000If you believe this is not a duplicate, please remove the
status/possible-duplicatelabel.[-][BUG] Erro "Cannot read properties of undefined (reading 'error')" após AbortError na CLI[/-][+]CLI Crash: [API Error: Cannot read properties of undefined (reading 'error')] triggered by AbortError[/+]casperlim99 commentedon Dec 2, 2025
I am having the same issue as well. On the latest version of Gemini CLI.
3AceShowHand commentedon Dec 3, 2025
me too, how to fix this ?
silviojr commentedon Dec 5, 2025
I spotted how to fix it. I will submit a PR soon.
default_api:read_filein the 3. content block is missing athought_signature#14437