gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

fetch failed

Open aura-marianav opened this issue 1 year ago • 2 comments

What happened?

When I run this command on the gemini CLI using VS Code terminal "convert the function from ~\Desktop\file.sql from oracle to postgres and add the type of join to the query and remove unnecessary space and don't add data type if not needed. After completing this task, provide the changes as a diff to be applied to the existing file."

I am getting this error "│File C:\Users\user1.cache/vscode-ripgrep/ripgrep-v13.0.0-10-x86_64-pc-windows-msvc.zip has been cached │ Authenticated via "oauth-personal". │ [ERROR] [IDEClient] IDE connection error. The connection was lost unexpectedly. Please try reconnecting by running /ide enable │ fetch failed │ ========================================= │ This is an unexpected error. Please file a bug report using the /bug tool. │ CRITICAL: Unhandled Promise Rejection! │ ========================================= │ Reason: TypeError: fetch failed │ Stack trace: │ TypeError: fetch failed │ at C:\Users\user1\AppData\Roaming\npm\node_modules@google\gemini-cli\node_modules\undici\index.js:124:13 │ at process.processTicksAndRejections (node:internal/process/task_queues:105:5) │ at async │ file:///C:/Users/mariana.v/AppData/Roaming/npm/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/ide/ide-│client.js:509:30 │ at async StreamableHTTPClientTransport.send │ (file:///C:/Users/user1/AppData/Roaming/npm/node_modules/@google/gemini-│cli/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHt │ tp.js:267:30)"

I tried to uninstall and install gemini and upddate npm but I still get the same error

What did you expect to happen?

i expected to show the diff code for approval but when it gets on this step the above error appears

Client information

  • CLI Version: 0.6.1
  • Git Commit: f3078136
  • Model: gemini-2.5-pro
  • Sandbox: no sandbox
  • OS: win32
  • Auth Method: OAuth
  • IDE Client: VS Code

Login information

No response

Anything else we need to know?

No response

aura-marianav avatar Sep 29 '25 10:09 aura-marianav

use -v 0.6.0

AnasAfawzy avatar Sep 29 '25 10:09 AnasAfawzy

Hi thanks for filing this issue.

To keep all communication in one place, I'm closing this as a duplicate of https://github.com/google-gemini/gemini-cli/issues/10243. Let's continue the discussion there.

As noted in https://github.com/google-gemini/gemini-cli/issues/10243#issuecomment-3352563903, could you please fetch the debug logs and add them to the thread in https://github.com/google-gemini/gemini-cli/issues/10243? That will help us investigate. Thanks!

skeshive avatar Sep 30 '25 14:09 skeshive