github / github/CopilotForXcode

FetchError: connect ECONNREFUSED 127.0.0.1:443

Open
#255 8 comments 1 reaction 0 assignees View on GitHub
Dominant language
Swift
Stars
6.3k
Forks
2k
Avg merge
2m
Merged PRs (30d)
2

Description

**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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.