Skip to content

always 400 INVALID_ARGUMENT #19062

@372046933

Description

@372046933

What happened?

bug-report-history-1771057409284.json

What did you expect to happen?

gemini always replies

✕ [API Error: [{
    "error": {
      "code": 400,
      "message": "Request contains an invalid argument.",
      "errors": [
        {
          "message": "Request contains an invalid argument.",
          "domain": "global",
          "reason": "badRequest"
        }
      ],
      "status": "INVALID_ARGUMENT"
    }
  }
  ]]

F12 shows

                                                                                                                                │
│          'content-length': '287',                                                                                              │
│          'content-type': 'application/json; charset=UTF-8',                                                                    │
│          date: 'Sat, 14 Feb 2026 08:13:05 GMT',                                                                                │
│          server: 'ESF',                                                                                                        │
│          'server-timing': 'gfet4t7; dur=353',                                                                                  │
│          vary: 'Origin, X-Origin, Referer',                                                                                    │
│          'x-cloudaicompanion-trace-id': 'd18e1e53669b4f04',                                                                    │
│          'x-content-type-options': 'nosniff',                                                                                  │
│          'x-frame-options': 'SAMEORIGIN',                                                                                      │
│          'x-xss-protection': '0'                                                                                               │
│        },                                                                                                                      │
│        status: 400,                                                                                                            │
│        statusText: 'Bad Request',                                                                                              │
│        request: {                                                                                                              │
│          responseURL: 'https://cloudcode-pa.googleapis.com/v1internal:streamGenerateContent?alt=sse'                           │
│        }                                                                                                                       │
│      },                                                                                                                        │
│      error: undefined,                                                                                                         │
│      status: 400,                                                                                                              │
│      [Symbol(gaxios-gaxios-error)]: '6.7.1'                                                                                    │
│    }                                                                                                             

Client information

  • CLI Version: 0.28.2
  • Git Commit: da5e47a
  • Session ID: 29f7b2ea-0a8b-4e2b-9121-39fa08326d7d
  • Operating System: darwin v22.22.0
  • Sandbox Environment: no sandbox
  • Model Version: auto-gemini-2.5
  • Auth Type: oauth-personal
  • Memory Usage: 217.5 MB
  • Terminal Name: Unknown
  • Terminal Background: #ffffff
  • Kitty Keyboard Protocol: Unsupported

Login information

google account

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/agentIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Qualitystatus/need-triageIssues that need to be triaged by the triage automation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions