Why I Can`t Sign In
Describe the bug I can`t sign in, I have try the version like 0.35.0、0.36.0 and latest
Versions
- Copilot for Xcode: 0.35.0
- Xcode: 16.2
- macOS: Sonoma 14.6
Screenshots
When I click the button of Sign In,it shows always loading and no response.
Logs [lsp] Request signInInitiate: HttpTimeoutError: Request to https:\/\/github.com\/login\/device\/code timed out after 30000ms\n at /snapshot/copilot-client/lib/src/network/helix.ts:96:19\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at $T.fetch (/snapshot/copilot-client/lib/src/network/helix.ts:94:22)\n ... 4 lines matching cause stack trace ...\n at Wr.messageHandler (/snapshot/copilot-client/agent/src/service.ts:319:45) {\n [cause]: AbortError: The operation was aborted.\n at fetch (/snapshot/copilot-client/node_modules/@adobe/helix-fetch/src/fetch/index.js:96:13)\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 $T.fetch (/snapshot/copilot-client/lib/src/network/helix.ts:94:22)\n at requestDeviceFlowStage1 (/snapshot/copilot-client/lib/src/auth/deviceFlow.ts:62:20)\n at Qv.getTokenUnguarded (/snapshot/copilot-client/lib/src/auth/deviceFlow.ts:133:24)\n at Qv.getToken (/snapshot/copilot-client/lib/src/auth/deviceFlow.ts:124:20)\n at handleSignInInitiateChecked (/snapshot/copilot-client/agent/src/methods/signInInitiate.ts:56:28)\n at Wr.messageHandler (/snapshot/copilot-client/agent/src/service.ts:319:45) {\n type: 'aborted',\n _name: 'AbortError'\n }\n}" } [2025-06-16T12:22:58.894Z] [error] [GitHubCopilot] [68406] Failed to send request signInInitiate. Error: Language server error: Server error: -32603 Request signInInitiate failed with message: Request to https://github.com/login/device/code timed out after 30000ms nil
Thx
looks like network timeout issue. could you delete the file ~/.config/github-copilot/apps.json and try again?
same problem
(base) [~]$ rm ~/.config/github-copilot/apps.json
rm: /Users/wlt/.config/github-copilot/apps.json: No such file or directory
@dw61 See https://github.com/github/CopilotForXcode/issues/323#issuecomment-2979896259, If you cannot see the folder ~/.config/github-copilot, it probably suffers permission denied issue with folder access. Could you check it first?
@testforstephen thanks, worked now
# 1 — make sure the folder exists
sudo mkdir -p ~/.config/github-copilot
# 2 — re-own everything under ~/.config
sudo chown -R $(whoami):staff ~/.config
# 3 — drop any ACLs that override rw bits
chmod -N ~/.config ~/.config/github-copilot # removes all ACL entries
chmod -N ~/.config ~/.config/github-copilot
This works for me
Hello, have you solved this problem? I encountered the same issue as you, and even the error message was the same. I'm sure my network is good and my browser can access Github normally. I tried these terminal commands of this issue, but they didn't work for me.