Copilot CLI shows Error when submit any request: TypeError: fetch failed; Execution failed: fetch failed
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
- type copilot
- enter request: "please explain the code for me "
- the error will show
Expected behavior
No response
Additional context
- Operating System: Windows
- WSL
The same error with Windows 11 PowerShell 7.5.3 Windows terminal (not in WSL).
same issue on macOS
Zscaler or someother firewall?
Zscaler or someother firewall?
Hello, exact same issue through ZScaler yes
Same issue, also have Zscaler
Same issue, with WSL on Windows 11 and Zscaler
same issue from Ubuntu. Having a corporate proxy behind, but unable to configure it properly from Copilot CLI
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