copilot网络连接问题

点击诊断按钮

输出诊断信息

复制代码
## GitHub Copilot Chat - Extension: 0.39.0 (prod) - VS Code: 1.111.0 (ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb) - OS: linux 6.8.0-101-generic x64 - Remote Name: ssh-remote - Extension Kind: Workspace - GitHub Account: locip123 ## Network User Settings:
json
  "http.proxy": "http://127.0.0.1:7897",
  "http.proxyStrictSSL": false,
  "http.systemCertificatesNode": true,
  "github.copilot.advanced.debug.useElectronFetcher": true,
  "github.copilot.advanced.debug.useNodeFetcher": false,
  "github.copilot.advanced.debug.useNodeFetchFetcher": true
Connecting to https://api.github.com: - DNS ipv4 Lookup: 20.27.177.116 (19 ms) - DNS ipv6 Lookup: Error (53 ms): getaddrinfo ENOTFOUND api.github.com - Proxy URL: http://127.0.0.1:7897 (0 ms) - Proxy Connection: Error (4 ms): connect ECONNREFUSED 127.0.0.1:7897 - Electron fetch: Unavailable - Node.js https: Error (4 ms): Error: Failed to establish a socket connection to proxies: PROXY 127.0.0.1:7897 at PacProxyAgent.<anonymous> (/home/elderbot/.vscode-server/cli/servers/Stable-ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb/server/node_modules/@vscode/proxy-agent/out/agent.js:120:19) at Generator.throw (<anonymous>) at rejected (/home/elderbot/.vscode-server/cli/servers/Stable-ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb/server/node_modules/@vscode/proxy-agent/out/agent.js:6:65) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) - Node.js fetch (configured): Error (11 ms): TypeError: fetch failed at node:internal/deps/undici/undici:14902:13 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async n._fetch (/home/elderbot/.vscode-server/extensions/github.copilot-chat-0.39.0/dist/extension.js:5080:5229) at async n.fetch (/home/elderbot/.vscode-server/extensions/github.copilot-chat-0.39.0/dist/extension.js:5080:4541) at async u (/home/elderbot/.vscode-server/extensions/github.copilot-chat-0.39.0/dist/extension.js:5112:186) at async Zm._executeContributedCommand (file:///home/elderbot/.vscode-server/cli/servers/Stable-ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb/server/out/vs/workbench/api/node/extensionHostProcess.js:494:48672) Error: connect ECONNREFUSED 127.0.0.1:7897 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1637:16) Connecting to https://api.githubcopilot.com/_ping: - DNS ipv4 Lookup: 140.82.112.21 (5 ms) - DNS ipv6 Lookup: Error (5 ms): getaddrinfo ENOTFOUND api.githubcopilot.com - Proxy URL: http://127.0.0.1:7897 (0 ms) - Proxy Connection: Error (2 ms): connect ECONNREFUSED 127.0.0.1:7897 - Electron fetch: Unavailable - Node.js https: Error (3 ms): Error: Failed to establish a socket connection to proxies: PROXY 127.0.0.1:7897 at PacProxyAgent.<anonymous> (/home/elderbot/.vscode-server/cli/servers/Stable-ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb/server/node_modules/@vscode/proxy-agent/out/agent.js:120:19) at Generator.throw (<anonymous>) at rejected (/home/elderbot/.vscode-server/cli/servers/Stable-ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb/server/node_modules/@vscode/proxy-agent/out/agent.js:6:65) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) - Node.js fetch (configured): Error (12 ms): TypeError: fetch failed at node:internal/deps/undici/undici:14902:13 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async n._fetch (/home/elderbot/.vscode-server/extensions/github.copilot-chat-0.39.0/dist/extension.js:5080:5229) at async n.fetch (/home/elderbot/.vscode-server/extensions/github.copilot-chat-0.39.0/dist/extension.js:5080:4541) at async u (/home/elderbot/.vscode-server/extensions/github.copilot-chat-0.39.0/dist/extension.js:5112:186) at async Zm._executeContributedCommand (file:///home/elderbot/.vscode-server/cli/servers/Stable-ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb/server/out/vs/workbench/api/node/extensionHostProcess.js:494:48672) Error: connect ECONNREFUSED 127.0.0.1:7897 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1637:16) Connecting to https://copilot-proxy.githubusercontent.com/_ping: - DNS ipv4 Lookup: 4.237.22.41 (7 ms) - DNS ipv6 Lookup: Error (15 ms): getaddrinfo ENOTFOUND copilot-proxy.githubusercontent.com - Proxy URL: http://127.0.0.1:7897 (1 ms) - Proxy Connection: Error (1 ms): connect ECONNREFUSED 127.0.0.1:7897 - Electron fetch: Unavailable - Node.js https: Error (3 ms): Error: Failed to establish a socket connection to proxies: PROXY 127.0.0.1:7897 at PacProxyAgent.<anonymous> (/home/elderbot/.vscode-server/cli/servers/Stable-ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb/server/node_modules/@vscode/proxy-agent/out/agent.js:120:19) at Generator.throw (<anonymous>) at rejected (/home/elderbot/.vscode-server/cli/servers/Stable-ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb/server/node_modules/@vscode/proxy-agent/out/agent.js:6:65) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) - Node.js fetch (configured): Error (10 ms): TypeError: fetch failed at node:internal/deps/undici/undici:14902:13 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async n._fetch (/home/elderbot/.vscode-server/extensions/github.copilot-chat-0.39.0/dist/extension.js:5080:5229) at async n.fetch (/home/elderbot/.vscode-server/extensions/github.copilot-chat-0.39.0/dist/extension.js:5080:4541) at async u (/home/elderbot/.vscode-server/extensions/github.copilot-chat-0.39.0/dist/extension.js:5112:186) at async Zm._executeContributedCommand (file:///home/elderbot/.vscode-server/cli/servers/Stable-ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb/server/out/vs/workbench/api/node/extensionHostProcess.js:494:48672) Error: connect ECONNREFUSED 127.0.0.1:7897 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1637:16)

原因是远程copilot尝试走代理

修复方法;

点击

齿轮按钮

点击设置

点击edit as json

删除有关

复制代码
"http.proxy": "http://127.0.0.1:7897",
"http.proxyStrictSSL": false,
"github.copilot.advanced.debug.useElectronFetcher": true,
"github.copilot.advanced.debug.useNodeFetcher": false,
"github.copilot.advanced.debug.useNodeFetchFetcher": true

的内容

相关推荐
其实防守也摸鱼4 小时前
权限提升与横向移动:从内网渗透到域控的完整技术图谱
运维·服务器·数据库·安全·github·copilot·渗透
其实防守也摸鱼5 小时前
免杀与持久化入门:从载荷免杀到隐蔽通道的完整指南
运维·服务器·数据库·安全·github·copilot·渗透
zandy10114 天前
2026vibe coding背后 :Kimi Code、Cursor、Claude Code、GitHub Copilot等五款工具架构演进全面分析
架构·github·copilot
zandy10114 天前
网络支付合规三重门:Kimi Code、Cursor、GitHub Copilot等五款AI编程工具国内实战测评
github·copilot·ai编程
其实防守也摸鱼4 天前
ZLibrary 类项目合规避坑指南:从技术实现到法律风险的全景梳理
运维·服务器·数据库·安全·自动化·github·copilot
ms365copilot5 天前
Excel做完≠结束,Copilot一键生成汇报PPT
powerpoint·excel·copilot
️学习的小王5 天前
AI编码工具的安全陷阱:Copilot/Codex漏洞风险与防御实践
人工智能·安全·copilot
ms365copilot5 天前
Copilot分析销售收入变化、找出涨跌原因
大数据·人工智能·copilot
MicrosoftReactor5 天前
GitHub Copilot App 入门指南:自动化处理 Dependabot 拉取请求分类
ai·自动化·github·copilot·pull request
其实防守也摸鱼6 天前
信创是什么:一文读懂信息技术应用创新
人工智能·阿里云·云计算·github·copilot