github / github/copilot-cli

Recurring Network error in Copilot CLI

Đang mở
#310 5 bình luận 1 reaction 1 người được giao Được @andyfeller nhận Xem trên GitHub
area:networking
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### 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"
}
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.