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

Copilot CLI shows Error when submit any request: TypeError: fetch failed; Execution failed: fetch failed

Open peijie opened this issue 1 year ago • 8 comments

Describe the bug

I am using WSL on Windows. I just installed Copilot CLI. I can start copilot. But when I submit any request, it shows me the error:

× TypeError: fetch failed

× Execution failed: fetch failed

The following is the screen output: copilot Welcome to GitHub Copilot CLI Version 0.0.328 · Commit 3755a93

Copilot can write, test and debug code right from your terminal. Describe a task to get started or enter ? for help. Copilot uses AI, check for mistakes.

● Connected to GitHub MCP Server

● Logged in as user: XXX

╭─────────────────────────────────────────────────────────────────────────────────────────╮ │ > please explain the code for me │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯

× TypeError: fetch failed

× Execution failed: fetch failed

Affected version

No response

Steps to reproduce the behavior

  1. type copilot
  2. enter request: "please explain the code for me "
  3. the error will show

Expected behavior

No response

Additional context

  • Operating System: Windows
  • WSL

peijie avatar Sep 29 '25 08:09 peijie

The same error with Windows 11 PowerShell 7.5.3 Windows terminal (not in WSL).

andreyslitmus avatar Sep 30 '25 01:09 andreyslitmus

same issue on macOS

josh-p-stanley avatar Sep 30 '25 01:09 josh-p-stanley

Zscaler or someother firewall?

bluryi avatar Sep 30 '25 17:09 bluryi

Zscaler or someother firewall?

Hello, exact same issue through ZScaler yes

dkt-abarth avatar Sep 30 '25 22:09 dkt-abarth

Same issue, also have Zscaler

sprinz87 avatar Oct 01 '25 06:10 sprinz87

Same issue, with WSL on Windows 11 and Zscaler

RonanFR avatar Oct 01 '25 08:10 RonanFR

same issue from Ubuntu. Having a corporate proxy behind, but unable to configure it properly from Copilot CLI

Damien-Granier avatar Oct 02 '25 07:10 Damien-Granier

De-duplicating with https://github.com/github/copilot-cli/issues/41

See https://github.com/github/copilot-cli/issues/41#issuecomment-3362444262 for latest update

devm33 avatar Oct 02 '25 18:10 devm33