Skip to content

Network error when setting a socks5 proxy #494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Zhaoyilunnn opened this issue May 28, 2025 · 0 comments
Open

Network error when setting a socks5 proxy #494

Zhaoyilunnn opened this issue May 28, 2025 · 0 comments

Comments

@Zhaoyilunnn
Copy link

Hi, Thanks for the great work

I've set http_proxy https_proxy to be sth like socks5://127.0.0.1:10808.

Then copilot seems to have network issue

[ERROR][2025-05-28 23:28:49] ...lsp/handlers.lua:562	"[lsp] Request checkStatus: FetchError: tunneling socket could not be established, cause=socket hang up\n    at fetch (/home/zhaoyilun/.local/share/nvim/lazy/copilot.lua/copilot/node_modules/@adobe/helix-fetch/src/fetch/index.js:99:11)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at cachingFetch (/home/zhaoyilun/.local/share/nvim/lazy/copilot.lua/copilot/node_modules/@adobe/helix-fetch/src/fetch/index.js:288:16)\n    at jT.fetch (/home/zhaoyilun/.local/share/nvim/lazy/copilot.lua/copilot/lib/src/network/helix.ts:94:22)\n    at apiFetch (/home/zhaoyilun/.local/share/nvim/lazy/copilot.lua/copilot/lib/src/network/github.ts:22:12)\n    at fetchCopilotToken (/home/zhaoyilun/.local/share/nvim/lazy/copilot.lua/copilot/lib/src/auth/copilotToken.ts:227:16)\n    at authFromGitHubToken (/home/zhaoyilun/.local/share/nvim/lazy/copilot.lua/copilot/lib/src/auth/copilotToken.ts:150:22)\n    at u8.fetchCopilotTokenEnvelope (/home/zhaoyilun/.local/share/nvim/lazy/copilot.lua/copilot/lib/src/auth/copilotTokenManager.ts:88:29)\n    at u8.getToken (/home/zhaoyilun/.local/share/nvim/lazy/copilot.lua/copilot/lib/src/auth/copilotTokenManager.ts:157:16)\n    at Bn.getTokenWithSignUpLimited (/home/zhaoyilun/.local/share/nvim/lazy/copilot.lua/copilot/lib/src/auth/manager.ts:155:13) {\n  type: 'system',\n  _name: 'FetchError',\n  code: 'ECONNRESET',\n  errno: undefined,\n  erroredSysCall: undefined\n}"

However, my other plugins like CopilotChat and Avante (which I also use copilot as the LLM provider) all work fine

Any idea on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant