Skip to content

Recurring Network error in Copilot CLI #310

@JoergStrebel

Description

@JoergStrebel

Describe the bug

If the prompts are longer in size, my copilot cli keeps throwing errors.

 ✗ Model call failed: "Connection error."

 ✗ Execution failed: Connection error.

I can try again after a /clear - sometimes works. But mostly fails.
Models used Claude Sonnet 4.5 and 4.

Is there some sort of network timeout or limit on thinking time? If I reduce the complexity of my prompts, Copilot will usually answer them, so this is not a HTTP proxy or connectivity issue.

Affected version

0.0.341

Steps to reproduce the behavior

  1. Enter a complex prompt, usually some bigger task involving multiple files and some complex tasks.
  2. Let the LLM think for a couple of minutes
  3. Observe the error message

Expected behavior

  1. Enter a complex prompt, usually some bigger task involving multiple files and some complex tasks.
  2. Either get the desired result or get an explanation why the answer could not be generated.

Additional context

  • Shell: bash
  • Terminal: Windows Terminal (WSL)
  • CPU Architecture: x86-64
  • OS: Windows11, WSL2, Ubuntu 24
  • copilot running in WSL2, all activities happening on WSL2 , no Windows resources needed
  • Logs:
2025-10-15T07:30:20.745Z [INFO] Starting Copilot CLI: 0.0.341
Commit: 5725358
2025-10-15T07:30:20.745Z [INFO] Node.js version: v24.10.0
2025-10-15T07:30:22.240Z [LOG] Using Copilot API endpoint: https://api.business.githubcopilot.com/mcp/readonly
2025-10-15T07:30:22.241Z [LOG] Starting remote MCP client for github-mcp-server with url: https://api.business.githubcopilot.com/mcp/readonly
2025-10-15T07:30:22.241Z [LOG] Creating MCP client for github-mcp-server...
2025-10-15T07:30:22.244Z [LOG] Connecting MCP client for github-mcp-server...
2025-10-15T07:30:24.183Z [LOG] MCP client for github-mcp-server connected, took 1939ms
2025-10-15T07:30:24.183Z [LOG] Started MCP client for remote server github-mcp-server
2025-10-15T07:30:24.183Z [LOG] GitHub MCP server configured after authentication
2025-10-15T07:34:14.400Z [INFO]  
2025-10-15T07:34:21.937Z [INFO] [log_c3562d, x-request-id: "00000-5f37d1ee-fdc7-48cb-a6d8-e3b1ace560b8"] post https://api.business.githubcopilot.com/chat/completions succeeded with status 200 in 5279ms

2025-10-15T07:34:52.103Z [INFO] [log_c5e5ac] connection failed - retrying, 5 attempts remaining

2025-10-15T07:35:23.364Z [INFO] [log_96855c] connection failed - retrying, 4 attempts remaining

2025-10-15T07:35:55.345Z [INFO] [log_d3185e] connection failed - retrying, 3 attempts remaining

2025-10-15T07:36:27.947Z [INFO] [log_9f7c8a] connection failed - retrying, 2 attempts remaining

2025-10-15T07:37:02.140Z [INFO] [log_274bfe] connection failed - retrying, 1 attempts remaining

2025-10-15T07:37:39.796Z [INFO] [log_2d2e8b] connection failed - error; no more retries left

2025-10-15T07:37:39.797Z [ERROR] error (Request-ID undefined)
2025-10-15T07:37:39.798Z [ERROR] {
  "name": "CAPIError"
}
2025-10-15T07:37:39.798Z [ERROR] Retry after is not set. Giving up.
2025-10-15T07:37:39.798Z [ERROR] error
2025-10-15T07:37:39.798Z [ERROR] {
  "name": "CAPIError"
}

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions