Skip to content

API Error: Cannot read properties of undefined (reading 'candidates') #18621

@xyzindl

Description

@xyzindl

What happened?

every time i make a request in the gemini-cli i get the following error: "✕ [API Error: Cannot read properties of undefined (reading 'candidates')]" and gemini goes in loops trying the same request over and over until i stop it.

What did you expect to happen?

I expected my request to be completed as usual.

Client information

Client Information

CLI Version 0.27.3 │
Git Commit d5a135b
Model gemini-3-pro-preview │
Sandbox no sandbox │
OS win32 │
Auth Method Logged in with Google

Login information

Logged in with Google

Anything else we need to know?

No response

Metadata

Metadata

Assignees

Labels

area/agentIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Qualitypriority/p0Critical and urgent (e.g., critical security vulnerability, major breakage).

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions