Skip to content

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

@peijie

Description

@peijie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions