Skip to content

Gemini CLI [API Error: Model stream ended with empty response text.] #10409

@yudhatheceo

Description

@yudhatheceo

What happened?

Good day guys. I have problem running Gemini CLI for simple task in my node. But every time I wrote command, Gemini CLI always throw error:

✕ [API Error: request to https://cloudcode-pa.googleapis.com/v1internal:countTokens failed, reason: getaddrinfo ENOTFOUND cloudcode-pa.googleapis.com]
✕ [API Error: Model stream ended with empty response text.]

I should quit the session and start again. And in few conversation, the problem is back again. And again. I try to change the auth from OAuth, API Key, or Vertex, there's no difference. Do I have network problem? Or...?

  • CLI Version: 0.7.0
  • Git Commit: fxxxxx
  • Model: gemini-2.5-flash
  • Sandbox : no sandbox
  • OS : linux (Almalinux 9)
  • Auth Method: OAuth
  • GCP Project: xxxx

What did you expect to happen?

I just wish Gemini CLI back to work again as supposed to be. Thank you...

Client information

Client Information

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

> /about
# paste output here

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/need-triageIssues that need to be triaged by the triage automation.

    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