我在 Visual Studio Code 中遇到 GitHub Copilot 问题,该扩展无法发送遥测数据。错误日志显示 FetchError: ETIMEDOUT。每次我尝试使用 Copilot 时都会发生这种情况,这使我无法充分利用该工具。
Error Log:
`
2024-08-09 14:38:13.961 [info] [fetcher] Using Helix fetcher.
2024-08-09 14:38:13.961 [info] [code-referencing] Public code references are enabled.
2024-08-09 14:38:14.010 [info] [auth] Successfully authenticated
2024-08-09 14:38:16.964 [error] [default] Error sending telemetry FetchError:
at fetch (c:\Users\user\.vscode\extensions\github.copilot-1.221.0\node_modules\@adobe\helix-fetch\src\fetch\index.js:99:11)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at cachingFetch (c:\Users\user\.vscode\extensions\github.copilot-1.221.0\node_modules\@adobe\helix-fetch\src\fetch\index.js:288:16)
at OO.fetch (c:\Users\user\.vscode\extensions\github.copilot-1.221.0\lib\src\network\helix.ts:96:22) {
type: 'system',
_name: 'FetchError',
code: 'ETIMEDOUT',
errno: undefined,
erroredSysCall: undefined
}
`
VS代码版本:1.92.1 GitHub Copilot 版本:v1.221.0 操作系统:Windows 11 有其他人遇到过这个问题吗?有解决方法或修复吗?
我尝试过的:
重新启动 VS Code 重新安装 Copilot 扩展 检查网络连接 环境:
两个月后了。您找到解决问题的方法了吗?
ETIMEDOUT 通常是网络错误,因此如果您的网络状况很糟糕,则可能会发生这种情况。它有可能会自行消失,但如果不是,使用 VPN 或不稳定的互联网等可能会导致这种情况。如果您不确定,可以通过 ping 某个网站来检查您的互联网连接。