Repository navigation
Closed
Description
- Copilot Chat Extension Version:
- VS Code Version: 1.107.0-insider (Commit: 771b551)
- OS Version: macOS 26.1 (25B78)
- Feature (e.g. agent/edit/ask mode): Everything
- Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): N/A (I can't choose a model)
- Logs:
2025-12-09 16:37:06.892 [error] TypeError: fetch failed
at node:internal/deps/undici/undici:14900:13
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async n._fetch (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:9430)
at async n.fetch (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:9078)
at async W4n (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:12547)
at async Qv.fetch (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:15297)
at async tC._fetchModels (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:5764:4887)
at async tC.getAllChatModels (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:5764:2698)
at async lM.getAllChatEndpoints (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:5764:14094)
at async r$._provideLanguageModelChatInfo (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:1219:1491)
at async kA.$provideLanguageModelChatInfo (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:30901)
Error: unable to get issuer certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1679:34)
at TLSSocket.emit (node:events:519:28)
at TLSSocket._finishInit (node:_tls_wrap:1078:8)
at ssl.onhandshakedone (node:_tls_wrap:864:12)
at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17): Failed to fetch models (522714bd-ea2b-4d88-8f99-9dc10e9291ee)
2025-12-09 16:37:07.756 [error] TypeError: fetch failed
at node:internal/deps/undici/undici:14900:13
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async n._fetch (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:9430)
at async n.fetch (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:9078)
at async W4n (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:12547)
at async Qv.fetch (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:15297)
at async tC._fetchModels (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:5764:4887)
at async tC.getChatModelFromFamily (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:5764:3523)
at async lM.getChatEndpoint (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:5764:12893)
at async _2.provideChatTitle (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:5752:3963)
at async kP.provideTitle (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:144:54870)
at async _l.$provideChatTitle (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:144:53993)
Error: unable to get issuer certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1679:34)
at TLSSocket.emit (node:events:519:28)
at TLSSocket._finishInit (node:_tls_wrap:1078:8)
at ssl.onhandshakedone (node:_tls_wrap:864:12)
at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17): Failed to fetch models (cc400f52-a628-4948-a9ba-8ed36a14ba41)
2025-12-09 16:37:59.644 [error] TypeError: fetch failed
at node:internal/deps/undici/undici:14900:13
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async n._fetch (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:9430)
at async n.fetch (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:9078)
at async W4n (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:12547)
at async Qv.fetch (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:15297)
at async Qv.fetchWithPagination (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:13757)
at async cP.getAllOpenSessions (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:1220:25902)
at async Timeout._onTimeout (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:1879:2040)
Error: unable to get issuer certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1679:34)
at TLSSocket.emit (node:events:519:28)
at TLSSocket._finishInit (node:_tls_wrap:1078:8)
at ssl.onhandshakedone (node:_tls_wrap:864:12)
at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17)
Steps to Reproduce:
- Open VS Code Insiders
- Open model selector
- Observe that no models are available
- Click Select Models
- Click Add Models
- Choose Copilot
- Observe that nothing happens and it fails with the above error
I'm not experiencing this issue on the VS Code production version (only Insiders). I'm not connected to a VPN or anything.
I'd be happy to help debug this further, but not really sure what next steps to take.
Attached is a video recording of this issue as well.
CopilotInsidersNoModels.mp4
Reacted by Chris Harris
Metadata
Metadata
Assignees
Labels
info-neededIssue requires more information from poster
Activity
fishcharlie commentedon Dec 9, 2025
I actually found some more logs:
lramos15 commentedon Dec 10, 2025
Your network is blocking the endpoint needed to fetch models. Please do F1 -> Chat Diagnostics to see the blocked endpoints
fishcharlie commentedon Dec 10, 2025
Logan Ramos (@lramos15) Here is the result of that:
GitHub Copilot Chat
Network
User Settings:
Connecting to https://api.github.com:
Connecting to https://api.individual.githubcopilot.com/_ping:
at TLSSocket.onConnectSecure (node:_tls_wrap:1679:34)
at TLSSocket.emit (node:events:519:28)
at TLSSocket._finishInit (node:_tls_wrap:1078:8)
at ssl.onhandshakedone (node:_tls_wrap:864:12)
at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17)
at node:internal/deps/undici/undici:14900:13
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async n._fetch (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:9430)
at async n.fetch (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:9078)
at async /Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4483:191
at async cA.h (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:41740)
Error: unable to get issuer certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1679:34)
at TLSSocket.emit (node:events:519:28)
at TLSSocket._finishInit (node:_tls_wrap:1078:8)
at ssl.onhandshakedone (node:_tls_wrap:864:12)
at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17)
Connecting to https://proxy.individual.githubcopilot.com/_ping:
at TLSSocket.onConnectSecure (node:_tls_wrap:1679:34)
at TLSSocket.emit (node:events:519:28)
at TLSSocket._finishInit (node:_tls_wrap:1078:8)
at ssl.onhandshakedone (node:_tls_wrap:864:12)
at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17)
at node:internal/deps/undici/undici:14900:13
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async n._fetch (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:9430)
at async n.fetch (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:9078)
at async /Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4483:191
at async cA.h (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:41740)
Error: unable to get issuer certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1679:34)
at TLSSocket.emit (node:events:519:28)
at TLSSocket._finishInit (node:_tls_wrap:1078:8)
at ssl.onhandshakedone (node:_tls_wrap:864:12)
at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17)
Connecting to https://mobile.events.data.microsoft.com: HTTP 404 (782 ms)
Connecting to https://dc.services.visualstudio.com: Error (48 ms): TypeError: fetch failed
at node:internal/deps/undici/undici:14900:13
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async n._fetch (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:9430)
at async n.fetch (/Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4451:9078)
at async /Users/charliefish/.vscode-insiders/extensions/github.copilot-chat-0.35.2025120903/dist/extension.js:4488:140
at async cA.h (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:41740)
Error: connect ECONNREFUSED 0.0.0.0:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1637:16)
at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17)
Connecting to https://copilot-telemetry.githubusercontent.com/_ping: HTTP 200 (154 ms)
Connecting to https://telemetry.individual.githubcopilot.com/_ping: Error (116 ms): Error: unable to get issuer certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1679:34)
at TLSSocket.emit (node:events:519:28)
at TLSSocket._finishInit (node:_tls_wrap:1078:8)
at ssl.onhandshakedone (node:_tls_wrap:864:12)
at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17)
Connecting to https://default.exp-tas.com: HTTP 400 (32 ms)
Number of system certificates: 12
Documentation
In corporate networks: Troubleshooting firewall settings for GitHub Copilot.
burkeholland commentedon Dec 16, 2025
Is it possible that that node fetch isn't correctly inheriting the trusted root certificate from the keychain?
Considering it works on stable and in Safari, it seems like maybe it's related to that uncidi package.
fishcharlie commentedon Dec 19, 2025
I was able to fix this by disabling the
Http: System Certificates Nodeexperimental option in settings.I'm still unsure why that option is broken. But it for sure seems to be broken and not related to my network settings.
That option is disabled by default in the production/release VS Code version, but is enabled by default in Insiders. That is why it fails in Insiders but works in release version.
fishcharlie commentedon Dec 21, 2025
#282332 (comment)
I take that back. It seems to be broken again. I'm not sure what changed but now it's not working again. I think it stopped working again after I restarted my laptop (not 100% sure on that tho).
Tyriar commentedon Jan 13, 2026
cc Robo (@deepak1556) for chromium requests
chrmarti commentedon Aug 31, 2026
Thanks for the detailed diagnostics. The underlying system-certificate issue was fixed in f7730c4 by updating the proxy agent to filter expired certificates before they are used by Node HTTPS requests, so this can be closed as completed. The fix shipped in 1.109.0.