Skip to content

API Error: 400 Invalid JSON Prevents File Read #22183

Description

@ypenn21

What happened?

reproduce error by following :

  1. Authenticated with gemini-api-key /auth
  2. Set export GOOGLE_GENAI_API_VERSION=v1 # default is v1beta
  3. The cli to read any file it returns an 400 error:

GOOGLE_GENAI_API_VERSION to v1 instead of the default for enterprise concern with v1beta being unstable..

What did you expect to happen?

The cli should parse the file, and continue with it's thought chain process.

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

│ About Gemini CLI                                                                                                                                                                                              
│ CLI Version                                                             0.33.0                                                                                                                                │
│ Git Commit                                                              6ee19e1f6                                                                                                                             │
│ Model                                                                   Auto (Gemini 3)                                                                                                                       │
│ Sandbox                                                                 no sandbox                                                                                                                            │
│ OS                                                                      darwin                                                                                                                                │
│ Auth Method                                                             gemini-api-key                                                                                                                        │
│ GCP Project                                                             genai-apps-25                                                                                                                         │
│ IDE Client                                                              Antigravity        

Login information

API key

Anything else we need to know?

This doesn't happen with Google Account, or Vertexai auth.

Metadata

Metadata

Assignees

Labels

area/agentIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Qualityarea/coreIssues related to User Interface, OS Support, Core Functionalityeffort/small1 day or less: trivial logic, UI adjustments, docskind/bugpriority/p1Important and should be addressed in the near term.status/bot-triaged

Type

Projects

Status
Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions