api.cocopilot.org被cf的盾挡了怎么办?

下面是它自动生成的检测报告

GitHub Copilot Chat

  • Extension Version: 0.22.2 (prod)

  • VS Code: vscode/1.95.2

  • OS: Linux

  • Remote Name: wsl

Network

User Settings:


"github.copilot.advanced": {

"debug.useElectronFetcher": true,

"debug.useNodeFetcher": false

}

Connecting to https://api.cocopilot.org:

  • DNS ipv4 Lookup: 172.67.200.181 (3 ms)

  • DNS ipv6 Lookup: Error: getaddrinfo ENOTFOUND api.cocopilot.org

  • Electron Fetcher: Unavailable

  • Node Fetcher: HTTP 403 (609 ms)

  • Helix Fetcher (configured): HTTP 403 (647 ms)

Connecting to http://127.0.0.1:8848/v1/_ping:

  • DNS ipv4 Lookup: Error: getaddrinfo ENOTFOUND 127.0.0.1:8848

  • DNS ipv6 Lookup: Error: getaddrinfo ENOTFOUND 127.0.0.1:8848

  • Electron Fetcher: Unavailable

  • Node Fetcher: HTTP 404 (4 ms)

  • Helix Fetcher (configured): HTTP 404 (5 ms)

Documentation

In corporate networks: Troubleshooting firewall settings for GitHub Copilot.

4 个赞

一些比较小众的国家才会拦啊

2 个赞

我加代理是美国的节点,不加用国内直连,统统403,也是醉了

1 个赞


我觉得是这种盾挡住的,每天上午都是好的下午就403了

2024-11-12 17:20:56.591 [info] Can't use the Electron fetcher in this environment.
2024-11-12 17:20:56.591 [info] Using the Helix fetcher.
2024-11-12 17:20:56.591 [info] Initializing Git extension service.
2024-11-12 17:20:57.158 [info] Successfully activated the vscode.git extension.
2024-11-12 17:20:57.158 [info] Enablement state of the vscode.git extension: true.
2024-11-12 17:20:57.158 [info] Successfully registered Git commit message provider.
2024-11-12 17:20:59.810 [info] Logged in as yesUcan
2024-11-12 17:20:59.860 [info] Removed 1 expired certificates
2024-11-12 17:21:01.143 [info] Got Copilot token for yesUcan
2024-11-12 17:21:01.418 [error] FetchError: socket hang up
    at WTe (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:168:29553)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at got (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:168:31578)
    at Ey.fetch (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:785:2296)
    at Wm._fetchModels (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:1773:16861): Failed to fetch models (d1db2001-e6b4-4a9c-8b8d-72edab079455)
2024-11-12 17:21:01.418 [info] activationBlocker from 'languageModelAccess' took for 3606ms
2024-11-12 17:21:01.549 [info] copilot token chat_enabled: true, sku: monthly_subscriber
2024-11-12 17:21:01.549 [info] GitHub.vscode-pull-request-github extension is not yet activated.
2024-11-12 17:21:01.555 [info] Registering default platform agent...
2024-11-12 17:21:01.568 [error] FetchError: socket hang up
    at WTe (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:168:29553)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at got (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:168:31578)
    at Ey.fetch (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:785:2296)
    at _E._doRefreshRemoteAgents (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:639:8624): Failed to load remote slash commands
2024-11-12 17:21:01.617 [error] FetchError: socket hang up
    at WTe (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:168:29553)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at got (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:168:31578)
    at Ey.fetch (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:785:2296)
    at Wm._fetchModels (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:1773:16861)
    at Wm.getChatModelFromFamily (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:1773:15511)
    at l2.getChatEndpoint (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:1773:20787)
    at t (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:628:825)
    at fE._registerLanguageModels (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:628:1810)
    at async Promise.all (index 0): Failed to fetch models (11dcfda0-781e-4694-a349-8797bcf861cd)
2024-11-12 17:21:02.061 [error] FetchError: socket hang up
    at WTe (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:168:29553)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at got (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:168:31578)
    at Ey.fetch (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:785:2296)
    at Wm._fetchModels (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:1773:16861)
    at Wm.getEmbeddingsModel (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:1773:16310)
    at l2.getEmbeddingsEndpoint (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:1773:21582)
    at t (/home/lee/.vscode-server/extensions/github.copilot-chat-0.22.2/dist/extension.js:628:2140): Failed to fetch models (520dda7e-1759-4128-92eb-e6ced13238f1)

忽略掉,确定是网络问题

佬,也碰到这个这个,这个错误不用管吗?

我也是这个错误,直连都不行

怎么解决的啊?我也是这个问题。。。

@xioobu @paststrange @E1hiz 就是cf抽风,不换网络的情况下无解。我现在在用 https://gitee.com/ripperTs/github-copilot-proxies ,原理跟override差不多,但它是自建的鉴权服务不怕网络问题,保证好open ai的api稳定访问就行

1 个赞