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

Unhandled Promise Rejection

Open jmclaughlin724 opened this issue 1 month ago • 2 comments

What happened?

Debug Console (F12 to close) │ │ │ │ Reason: TypeError: fetch failed │ │ Stack trace: │ │ TypeError: fetch failed │ │ at /Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/undici/index.js:124:13 │ │ at async │ │ file:///Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/ide │ │ /ide-client.js:512:30 │ │ at async StreamableHTTPClientTransport.send │ │ (file:///Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/@modelcontextprotocol/sdk/dist/esm/█│ │ client/streamableHttp.js:296:30) (x4) █│ │ ✖========================================= █│ │ 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 /Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/undici/index.js:124:13 █│ │ at process.processTicksAndRejections (node:internal/process/task_queues:103:5) █│ │ at async █│ │ file:///Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/ide█│ │ /ide-client.js:512:30 █│ │ at async StreamableHTTPClientTransport.send █│ │ (file:///Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/@modelcontextprotocol/sdk/dist/esm/█│ │ client/streamableHttp.js:296:30) (x6) █│ ╰──────────────────────────────────────────────── Error Log CleanupError 1

Reason: TypeError: fetch failed

Stack trace: TypeError: fetch failed at /Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/undici/index.js:124:13 at async file:///Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/ide/ide-client.js:512:30 at async StreamableHTTPClientTransport.send (file:///Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js:296:30) (x4) Note: This is an unexpected error. Please file a bug report using the /bug tool.Error 2 (Unhandled Promise Rejection)

CRITICAL: Unhandled Promise Rejection!

Reason: TypeError: fetch failed

Stack trace: TypeError: fetch failed at /Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/undici/index.js:124:13 at process.processTicksAndRejections (node:internal/process/task_queues:103:5) at async file:///Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/ide/ide-client.js:512:30 at async StreamableHTTPClientTransport.send (file:///Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js:296:30) (x6)Error Log CleanupError 1

Reason: TypeError: fetch failed Stack Trace: TypeError: fetch failed at /Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/undici/index.js:124:13 at async file:///Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/ide/ide-client.js:512:30 at async StreamableHTTPClientTransport.send (file:///Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js:296:30) (x4) Note: This is an unexpected error. Please file a bug report using the /bug tool. Error 2 (Unhandled Promise Rejection)

CRITICAL: Unhandled Promise Rejection! Reason: TypeError: fetch failed Stack Trace: TypeError: fetch failed at /Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/undici/index.js:124:13 at process.processTicksAndRejections (node:internal/process/task_queues:103:5) at async file:///Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/ide/ide-client.js:512:30 at async StreamableHTTPClientTransport.send (file:///Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js:296:30) (x6) Yes, the cleanup is complete based on your request to use proper markdown and visual structure on the provided error log text.

The original content has been formatted as follows:

Error Log CleanupError 1

Reason: TypeError: fetch failed Stack Trace: TypeError: fetch failed at /Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/undici/index.js:124:13 at async file:///Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/ide/ide-client.js:512:30 at async StreamableHTTPClientTransport.send (file:///Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js:296:30) (x4) Note: This is an unexpected error. Please file a bug report using the /bug tool. Error 2 (Unhandled Promise Rejection)

CRITICAL: Unhandled Promise Rejection! Reason: TypeError: fetch failed Stack Trace: TypeError: fetch failed at /Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/undici/index.js:124:13 at process.processTicksAndRejections (node:internal/process/task_queues:103:5) at async file:///Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/ide/ide-client.js:512:30 at async StreamableHTTPClientTransport.send (file:///Users/johnmclaughlin/.nvm/versions/node/v24.11.1/lib/node_modules/@google/gemini-cli/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js:296:30) (x6)

What did you expect to happen?

The app to not crash

Client information

  • CLI Version: 0.18.4
  • Git Commit: 2e8d7831c
  • Session ID: c985ea1b-bd0d-4ea0-9d8b-3214328f56df
  • Operating System: darwin v24.11.1
  • Sandbox Environment: no sandbox
  • Model Version: auto
  • Memory Usage: 386.4 MB
  • IDE Client: VS Code

Login information

No response

Anything else we need to know?

No response

jmclaughlin724 avatar Nov 28 '25 19:11 jmclaughlin724