CopilotForXcode icon indicating copy to clipboard operation
CopilotForXcode copied to clipboard

FetchError: connect ECONNREFUSED 127.0.0.1:443

Open nenseso opened this issue 8 months ago • 8 comments

Describe the bug

I can't use it Versions

  • Copilot for Xcode: [e.g. 0.33.0]
  • Xcode: [e.g. 16.2]
  • macOS: [e.g. 15.3.1]

Logs

[2025-04-18T14:53:16.510Z] [info] [GitHubCopilot] [53464] window/logMessage: {
  "type" : 3,
  "message" : "[lsp] GitHub Copilot Language Server 1.277.0 initialized"
}
[2025-04-18T14:53:16.723Z] [info] [GitHubCopilot] [53464] window/logMessage: {
  "type" : 4,
  "message" : "[certificates] Read 69 certificates from Mac keychain"
}
[2025-04-18T14:53:16.723Z] [info] [GitHubCopilot] [53464] window/logMessage: {
  "type" : 3,
  "message" : "[certificates] Removed 14 expired certificates"
}
[2025-04-18T14:53:16.867Z] [info] [GitHubCopilot] [53464] statusNotification: {
  "status" : "Warning",
  "message" : "FetchError: connect ECONNREFUSED 127.0.0.1:443",
  "busy" : false,
  "kind" : "Warning"
}
[2025-04-18T14:53:16.868Z] [info] [GitHubCopilot] [53464] window/logMessage: {
  "type" : 1,
  "message" : "[lsp] Request checkStatus: FetchError: connect ECONNREFUSED 127.0.0.1:443\n    at fetch (\/snapshot\/copilot-client\/node_modules\/@adobe\/helix-fetch\/src\/fetch\/index.js:99:11)\n    at processTicksAndRejections (node:internal\/process\/task_queues:95:5)\n    at cachingFetch (\/snapshot\/copilot-client\/node_modules\/@adobe\/helix-fetch\/src\/fetch\/index.js:288:16)\n    at O1e.fetch (\/snapshot\/copilot-client\/lib\/src\/network\/helix.ts:94:22)\n    at fetchCopilotToken (\/snapshot\/copilot-client\/lib\/src\/auth\/copilotToken.ts:206:16)\n    at authFromGitHubToken (\/snapshot\/copilot-client\/lib\/src\/auth\/copilotToken.ts:130:22)\n    at Zee.fetchCopilotTokenEnvelope (\/snapshot\/copilot-client\/lib\/src\/auth\/copilotTokenManager.ts:78:29) {\n  type: 'system',\n  _name: 'FetchError',\n  code: 'ECONNREFUSED',\n  errno: -61,\n  erroredSysCall: 'connect'\n}"
}
[2025-04-18T14:53:16.869Z] [error] [GitHubCopilot] [53464] Failed to send request checkStatus. Error: Language server error: Server error: -32603 Request checkStatus failed with message: connect ECONNREFUSED 127.0.0.1:443 nil

nenseso avatar Apr 19 '25 02:04 nenseso

I have the same problem and found it is an openssl problem. Can you try pod update to see if it works OK?

LightHouse2013 avatar Apr 20 '25 18:04 LightHouse2013

I have the same problem and found it is an openssl problem. Can you try pod update to see if it works OK?

@LightHouse2013 Could you explain more on what the specific openssl problem is it? and how did you solve it? thanks.

testforstephen avatar Apr 21 '25 01:04 testforstephen

@testforstephen

  • I found that my Copilot could not connect, so I logged out, but could not log in again. The error message was the same as the original poster's, except that Server error: -32603

  • Last night, I found that pod install of the new repo failed, and the message was: fatal: unable to access 'https://github.com/xx/xxx.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

  • pod update also fail: Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down

  • brew update also fail: fatal: unable to access 'https://github.com/LouisBrunner/homebrew-valgrind/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

  • so, i have to solve those issue, fixed by:brew update-reset

  • Magic pill is: brew update-reset

I hope it helps you

LightHouse2013 avatar Apr 21 '25 02:04 LightHouse2013

@LightHouse2013 thanks for information. Seems a network issue, perhaps related to GFW? Let's wait to see whether other region users encounter the issue.

testforstephen avatar Apr 21 '25 02:04 testforstephen

is network issue,set a proxy works fine.

nenseso avatar Apr 21 '25 13:04 nenseso

Try to update further

mdrizwan22 avatar May 23 '25 07:05 mdrizwan22

085709116368

takashias89-byte avatar Oct 03 '25 15:10 takashias89-byte

[2025-04-18T14:53:16.510Z] [info] [GitHubCopilot] [53464] window/logMessage: { "type" : 3, "message" : "[lsp] GitHub Copilot Language Server 1.277.0 initialized" } [2025-04-18T14:53:16.723Z] [info] [GitHubCopilot] [53464] window/logMessage: { "type" : 4, "message" : "[certificates] Read 69 certificates from Mac keychain" } [2025-04-18T14:53:16.723Z] [info] [GitHubCopilot] [53464] window/logMessage: { "type" : 3, "message" : "[certificates] Removed 14 expired certificates" } [2025-04-18T14:53:16.867Z] [info] [GitHubCopilot] [53464] statusNotification: { "status" : "Warning", "message" : "FetchError: connect ECONNREFUSED 127.0.0.1:443", "busy" : false, "kind" : "Warning" } [2025-04-18T14:53:16.868Z] [info] [GitHubCopilot] [53464] window/logMessage: { "type" : 1, "message" : "[lsp] Request checkStatus: FetchError: connect ECONNREFUSED 127.0.0.1:443\n at fetch (/snapshot/copilot-client/node_modules/@adobe/helix-fetch/src/fetch/index.js:99:11)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at cachingFetch (/snapshot/copilot-client/node_modules/@adobe/helix-fetch/src/fetch/index.js:288:16)\n at O1e.fetch (/snapshot/copilot-client/lib/src/network/helix.ts:94:22)\n at fetchCopilotToken (/snapshot/copilot-client/lib/src/auth/copilotToken.ts:206:16)\n at authFromGitHubToken (/snapshot/copilot-client/lib/src/auth/copilotToken.ts:130:22)\n at Zee.fetchCopilotTokenEnvelope (/snapshot/copilot-client/lib/src/auth/copilotTokenManager.ts:78:29) {\n type: 'system',\n _name: 'FetchError',\n code: 'ECONNREFUSED',\n errno: -61,\n erroredSysCall: 'connect'\n}" } [2025-04-18T14:53:16.869Z] [error] [GitHubCopilot] [53464] Failed to send request checkStatus. Error: Language server error: Server error: -32603 Request checkStatus failed with message: connect ECONNREFUSED 127.0.0.1:443 nil085709116368 done✔️

takashias89-byte avatar Oct 03 '25 15:10 takashias89-byte