microsoft / vscode-copilot-release

Feedback on GitHub Copilot Chat UX in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat
Creative Commons Attribution 4.0 International
311 stars 28 forks source link

Unable to resolve model with family selection: gpt-4 #1294

Closed tigaron closed 2 months ago

tigaron commented 3 months ago

image

GitHub Copilot Output:

2024-06-10 15:36:34.219 [error] [default] Error sending telemetry FetchError: 
    at fetch (c:\Users\tigaron\.vscode\extensions\github.copilot-1.200.0\node_modules\@adobe\helix-fetch\src\fetch\index.js:99:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at cachingFetch (c:\Users\tigaron\.vscode\extensions\github.copilot-1.200.0\node_modules\@adobe\helix-fetch\src\fetch\index.js:288:16)
    at TH.fetch (c:\Users\tigaron\.vscode\extensions\github.copilot-1.200.0\lib\src\network\helix.ts:78:22) {
  type: 'system',
  _name: 'FetchError',
  code: 'ETIMEDOUT',
  errno: undefined,
  erroredSysCall: undefined
}

GitHub Copilot Chat Output:

2024-06-10 15:36:18.613 [info] [auth] Got Copilot token for tigaron
2024-06-10 15:36:20.398 [info] [RemoteAgents] Failed to load remote slash commands: ate
2024-06-10 15:36:26.393 [info] [extension] Error: Unable to resolve model with family selection: gpt-4
    at Z2.getChatModel (c:\Users\tigaron\.vscode\extensions\github.copilot-chat-0.16.0\dist\extension.js:1164:5671)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at IT.getChatEndpoint (c:\Users\tigaron\.vscode\extensions\github.copilot-chat-0.16.0\dist\extension.js:1164:7377)
    at Function.createIntentInvocation (c:\Users\tigaron\.vscode\extensions\github.copilot-chat-0.16.0\dist\extension.js:818:5585)
    at K6._provideResponseWithProgress (c:\Users\tigaron\.vscode\extensions\github.copilot-chat-0.16.0\dist\extension.js:844:553)
    at K6.provideResponseWithProgress (c:\Users\tigaron\.vscode\extensions\github.copilot-chat-0.16.0\dist\extension.js:842:8996)
    at n.z (c:\Users\tigaron\.vscode\extensions\github.copilot-chat-0.16.0\dist\extension.js:854:1972)
    at m.$invokeAgent (c:\Users\tigaron\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:153:49553)

Github Copilot Diagnostic:

## Copilot

- Version: 1.200.0
- Build: prod
- Editor: vscode/1.90.0

## Environment

- http_proxy: n/a
- https_proxy: n/a
- no_proxy: n/a
- SSL_CERT_FILE: n/a
- SSL_CERT_DIR: n/a
- OPENSSL_CONF: n/a

## Feature Flags

- Send Restricted Telemetry: disabled
- Chat: enabled

## Node setup

- Number of root certificates: 141
- Operating system: Windows_NT
- Operating system version: 10.0.22621
- Operating system architecture: x64
- NODE_OPTIONS: n/a
- NODE_EXTRA_CA_CERTS: n/a
- NODE_TLS_REJECT_UNAUTHORIZED: n/a
- tls default min version: TLSv1.2
- tls default max version: TLSv1.3

## Network Configuration

- Proxy host: n/a
- Proxy port: n/a
- Kerberos SPN: n/a
- Reject unauthorized: disabled
- Fetcher: HelixFetcher

## Reachability

- github.com: HTTP 200
- copilot-proxy.githubusercontent.com: HTTP 200
- api.githubcopilot.com: 
- default.exp-tas.com: HTTP 200

## VS Code Configuration

- HTTP proxy: 
- HTTP proxy authentication: n/a
- Proxy Strict SSL: true
- Extension HTTP proxy support: override

## Extensions

- Is `win-ca` installed?: false
- Is `mac-ca` installed?: false

## Authentication

- GitHub username: tigaron
lramos15 commented 3 months ago

Is there anymore to the Copilot Chat logs? There is normally some information above that

pwnlxrd commented 3 months ago

hi, I have the same problem, I will add information Github Copilot Diagnostic:

## Copilot

- Version: 1.200.0
- Build: prod
- Editor: vscode/1.90.0

## Environment

- http_proxy: n/a
- https_proxy: n/a
- no_proxy: n/a
- SSL_CERT_FILE: n/a
- SSL_CERT_DIR: n/a
- OPENSSL_CONF: n/a

## Feature Flags

- Send Restricted Telemetry: disabled
- Chat: enabled

## Node setup

- Number of root certificates: 141
- Operating system: Darwin
- Operating system version: 23.5.0
- Operating system architecture: arm64
- NODE_OPTIONS: n/a
- NODE_EXTRA_CA_CERTS: n/a
- NODE_TLS_REJECT_UNAUTHORIZED: n/a
- tls default min version: TLSv1.2
- tls default max version: TLSv1.3

## Network Configuration

- Proxy host: n/a
- Proxy port: n/a
- Kerberos SPN: n/a
- Reject unauthorized: disabled
- Fetcher: HelixFetcher

## Reachability

- github.com: HTTP 200
- copilot-proxy.githubusercontent.com: HTTP 200
- api.githubcopilot.com: HTTP 200
- default.exp-tas.com: HTTP 200

## VS Code Configuration

- HTTP proxy: 
- HTTP proxy authentication: n/a
- Proxy Strict SSL: true
- Extension HTTP proxy support: override

## Extensions

- Is `win-ca` installed?: false
- Is `mac-ca` installed?: false

## Authentication

- GitHub username: pwnlxrd

GitHub Copilot Output:

2024-06-11 00:03:13.704 [error] [default] Error sending telemetry FetchError: connect ECONNREFUSED 0.0.0.0:443
    at fetch (/Users/pwnlxrd/.vscode/extensions/github.copilot-1.200.0/node_modules/@adobe/helix-fetch/src/fetch/index.js:99:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at cachingFetch (/Users/pwnlxrd/.vscode/extensions/github.copilot-1.200.0/node_modules/@adobe/helix-fetch/src/fetch/index.js:288:16)
    at TH.fetch (/Users/pwnlxrd/.vscode/extensions/github.copilot-1.200.0/lib/src/network/helix.ts:78:22) {
  type: 'system',
  _name: 'FetchError',
  code: 'ECONNREFUSED',
  errno: -61,
  erroredSysCall: 'connect'
}

GitHub Copilot Chat Output:

2024-06-11 00:03:13.122 [info] [auth] Got Copilot token for pwnlxrd
2024-06-11 00:18:32.596 [info] [extension] Error: Unable to resolve model with family selection: gpt-4
    at Z2.getChatModel (/Users/pwnlxrd/.vscode/extensions/github.copilot-chat-0.16.0/dist/extension.js:1164:5671)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at IT.getChatEndpoint (/Users/pwnlxrd/.vscode/extensions/github.copilot-chat-0.16.0/dist/extension.js:1164:7377)
    at Function.createIntentInvocation (/Users/pwnlxrd/.vscode/extensions/github.copilot-chat-0.16.0/dist/extension.js:818:5585)
    at K6._provideResponseWithProgress (/Users/pwnlxrd/.vscode/extensions/github.copilot-chat-0.16.0/dist/extension.js:844:553)
    at K6.provideResponseWithProgress (/Users/pwnlxrd/.vscode/extensions/github.copilot-chat-0.16.0/dist/extension.js:842:8996)
    at n.z (/Users/pwnlxrd/.vscode/extensions/github.copilot-chat-0.16.0/dist/extension.js:854:1972)
    at m.$invokeAgent (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:153:49553)
pwnlxrd commented 3 months ago

Full GitHub Copilot Chat log:

2024-06-10 23:51:48.402 [info] [FetcherService] Using the Helix fetcher.
2024-06-10 23:51:48.402 [info] [gitExtensionService] Initializing Git extension service.
2024-06-10 23:51:48.402 [info] [gitExtensionService] Successfully activated the vscode.git extension.
2024-06-10 23:51:48.402 [info] [gitExtensionService] Enablement state of the vscode.git extension: true.
2024-06-10 23:51:48.402 [info] [gitExtensionService] Successfully registered Git commit message provider.
2024-06-10 23:51:48.402 [info] [auth] Logged in as pwnlxrd
2024-06-10 23:51:48.952 [info] [chat] copilot token chat_enabled: true
2024-06-10 23:51:48.952 [info] [githubTitleAndDescriptionProvider] Initializing GitHub PR title and description provider provider.
2024-06-10 23:51:48.952 [info] [githubTitleAndDescriptionProvider] GitHub.vscode-pull-request-github extension is not yet activated.
2024-06-10 23:51:48.966 [info] [auth] Got Copilot token for pwnlxrd
2024-06-10 23:52:32.800 [info] [FetcherService] Using the Helix fetcher.
2024-06-10 23:52:32.800 [info] [gitExtensionService] Initializing Git extension service.
2024-06-10 23:52:32.800 [info] [gitExtensionService] Successfully activated the vscode.git extension.
2024-06-10 23:52:32.800 [info] [gitExtensionService] Enablement state of the vscode.git extension: true.
2024-06-10 23:52:32.800 [info] [gitExtensionService] Successfully registered Git commit message provider.
2024-06-10 23:52:32.837 [info] [auth] Logged in as pwnlxrd
2024-06-10 23:52:33.342 [info] [chat] copilot token chat_enabled: true
2024-06-10 23:52:33.342 [info] [githubTitleAndDescriptionProvider] Initializing GitHub PR title and description provider provider.
2024-06-10 23:52:33.342 [info] [githubTitleAndDescriptionProvider] GitHub.vscode-pull-request-github extension is not yet activated.
2024-06-10 23:52:33.355 [info] [auth] Got Copilot token for pwnlxrd
2024-06-10 23:52:45.506 [info] [FetcherService] Using the Helix fetcher.
2024-06-10 23:52:45.506 [info] [gitExtensionService] Initializing Git extension service.
2024-06-10 23:52:45.506 [info] [gitExtensionService] Successfully activated the vscode.git extension.
2024-06-10 23:52:45.506 [info] [gitExtensionService] Enablement state of the vscode.git extension: true.
2024-06-10 23:52:45.506 [info] [gitExtensionService] Successfully registered Git commit message provider.
2024-06-10 23:52:45.542 [info] [auth] Logged in as pwnlxrd
2024-06-10 23:52:46.063 [info] [chat] copilot token chat_enabled: true
2024-06-10 23:52:46.063 [info] [githubTitleAndDescriptionProvider] Initializing GitHub PR title and description provider provider.
2024-06-10 23:52:46.063 [info] [githubTitleAndDescriptionProvider] GitHub.vscode-pull-request-github extension is not yet activated.
2024-06-10 23:52:46.074 [info] [auth] Got Copilot token for pwnlxrd
2024-06-10 23:53:08.324 [info] [FetcherService] Using the Helix fetcher.
2024-06-10 23:53:08.324 [info] [gitExtensionService] Initializing Git extension service.
2024-06-10 23:53:08.324 [info] [gitExtensionService] Successfully activated the vscode.git extension.
2024-06-10 23:53:08.324 [info] [gitExtensionService] Enablement state of the vscode.git extension: true.
2024-06-10 23:53:08.324 [info] [gitExtensionService] Successfully registered Git commit message provider.
2024-06-10 23:53:08.366 [info] [auth] Logged in as pwnlxrd
2024-06-10 23:53:08.914 [info] [chat] copilot token chat_enabled: true
2024-06-10 23:53:08.914 [info] [githubTitleAndDescriptionProvider] Initializing GitHub PR title and description provider provider.
2024-06-10 23:53:08.914 [info] [githubTitleAndDescriptionProvider] GitHub.vscode-pull-request-github extension is not yet activated.
2024-06-10 23:53:08.924 [info] [auth] Got Copilot token for pwnlxrd
2024-06-10 23:53:32.561 [info] [FetcherService] Using the Helix fetcher.
2024-06-10 23:53:32.561 [info] [gitExtensionService] Initializing Git extension service.
2024-06-10 23:53:32.561 [info] [gitExtensionService] Successfully activated the vscode.git extension.
2024-06-10 23:53:32.561 [info] [gitExtensionService] Enablement state of the vscode.git extension: true.
2024-06-10 23:53:32.561 [info] [gitExtensionService] Successfully registered Git commit message provider.
2024-06-10 23:53:32.597 [info] [auth] Logged in as pwnlxrd
2024-06-10 23:53:33.054 [info] [chat] copilot token chat_enabled: true
2024-06-10 23:53:33.054 [info] [githubTitleAndDescriptionProvider] Initializing GitHub PR title and description provider provider.
2024-06-10 23:53:33.054 [info] [githubTitleAndDescriptionProvider] GitHub.vscode-pull-request-github extension is not yet activated.
2024-06-10 23:53:33.064 [info] [auth] Got Copilot token for pwnlxrd
2024-06-11 00:03:12.526 [info] [FetcherService] Using the Helix fetcher.
2024-06-11 00:03:12.526 [info] [gitExtensionService] Initializing Git extension service.
2024-06-11 00:03:12.526 [info] [gitExtensionService] Successfully activated the vscode.git extension.
2024-06-11 00:03:12.526 [info] [gitExtensionService] Enablement state of the vscode.git extension: true.
2024-06-11 00:03:12.526 [info] [gitExtensionService] Successfully registered Git commit message provider.
2024-06-11 00:03:12.565 [info] [auth] Logged in as pwnlxrd
2024-06-11 00:03:13.115 [info] [chat] copilot token chat_enabled: true
2024-06-11 00:03:13.115 [info] [githubTitleAndDescriptionProvider] Initializing GitHub PR title and description provider provider.
2024-06-11 00:03:13.115 [info] [githubTitleAndDescriptionProvider] GitHub.vscode-pull-request-github extension is not yet activated.
2024-06-11 00:03:13.122 [info] [auth] Got Copilot token for pwnlxrd
2024-06-11 00:18:32.596 [info] [extension] Error: Unable to resolve model with family selection: gpt-4
    at Z2.getChatModel (/Users/pwnlxrd/.vscode/extensions/github.copilot-chat-0.16.0/dist/extension.js:1164:5671)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at IT.getChatEndpoint (/Users/pwnlxrd/.vscode/extensions/github.copilot-chat-0.16.0/dist/extension.js:1164:7377)
    at Function.createIntentInvocation (/Users/pwnlxrd/.vscode/extensions/github.copilot-chat-0.16.0/dist/extension.js:818:5585)
    at K6._provideResponseWithProgress (/Users/pwnlxrd/.vscode/extensions/github.copilot-chat-0.16.0/dist/extension.js:844:553)
    at K6.provideResponseWithProgress (/Users/pwnlxrd/.vscode/extensions/github.copilot-chat-0.16.0/dist/extension.js:842:8996)
    at n.z (/Users/pwnlxrd/.vscode/extensions/github.copilot-chat-0.16.0/dist/extension.js:854:1972)
    at m.$invokeAgent (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:153:49553)
tigaron commented 3 months ago

Is there anymore to the Copilot Chat logs? There is normally some information above that

I think the issue only happen in WSL while using remote vscode.

I tried copilot chat in normal vscode and it's working fine: image

While in remote WSL i got this response: image

This is the full Copilot logs:

2024-06-11 12:15:54.883 [info] [fetcher] Using Helix fetcher, Electron fetcher is not available.
2024-06-11 12:15:54.883 [info] [code-referencing] Public code references are enabled.
2024-06-11 12:15:54.936 [info] [auth] Sucessfully authenticated
2024-06-11 12:15:56.214 [error] [default] Error sending telemetry FetchError: 
    at fetch (/home/tigaron-wsl/.vscode-server/extensions/github.copilot-1.200.0/node_modules/@adobe/helix-fetch/src/fetch/index.js:99:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at cachingFetch (/home/tigaron-wsl/.vscode-server/extensions/github.copilot-1.200.0/node_modules/@adobe/helix-fetch/src/fetch/index.js:288:16)
    at TH.fetch (/home/tigaron-wsl/.vscode-server/extensions/github.copilot-1.200.0/lib/src/network/helix.ts:78:22) {
  type: 'system',
  _name: 'FetchError',
  code: 'ETIMEDOUT',
  errno: undefined,
  erroredSysCall: undefined
}
2024-06-11 12:16:10.476 [error] [default] Error sending telemetry FetchError: 
    at fetch (/home/tigaron-wsl/.vscode-server/extensions/github.copilot-1.200.0/node_modules/@adobe/helix-fetch/src/fetch/index.js:99:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at cachingFetch (/home/tigaron-wsl/.vscode-server/extensions/github.copilot-1.200.0/node_modules/@adobe/helix-fetch/src/fetch/index.js:288:16)
    at TH.fetch (/home/tigaron-wsl/.vscode-server/extensions/github.copilot-1.200.0/lib/src/network/helix.ts:78:22) {
  type: 'system',
  _name: 'FetchError',
  code: 'ETIMEDOUT',
  errno: undefined,
  erroredSysCall: undefined
}

This is the full Copilot Chat logs:

2024-06-11 12:15:51.300 [info] [FetcherService] Using the Helix fetcher.
2024-06-11 12:15:51.301 [info] [gitExtensionService] Initializing Git extension service.
2024-06-11 12:15:51.656 [info] [gitExtensionService] Successfully activated the vscode.git extension.
2024-06-11 12:15:51.656 [info] [gitExtensionService] Enablement state of the vscode.git extension: true.
2024-06-11 12:15:51.656 [info] [gitExtensionService] Successfully registered Git commit message provider.
2024-06-11 12:15:51.679 [info] [auth] Logged in as tigaron
2024-06-11 12:15:53.094 [info] [chat] copilot token chat_enabled: true
2024-06-11 12:15:53.094 [info] [githubTitleAndDescriptionProvider] Initializing GitHub PR title and description provider provider.
2024-06-11 12:15:53.094 [info] [githubTitleAndDescriptionProvider] GitHub.vscode-pull-request-github extension is not yet activated.
2024-06-11 12:15:53.109 [info] [auth] Got Copilot token for tigaron
2024-06-11 12:15:54.430 [info] [RemoteAgents] Failed to load remote slash commands: ate
2024-06-11 12:15:55.002 [info] [extension] Error: Unable to resolve model with family selection: gpt-4
    at Z2.getChatModel (/home/tigaron-wsl/.vscode-server/extensions/github.copilot-chat-0.16.0/dist/extension.js:1164:5671)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at IT.getChatEndpoint (/home/tigaron-wsl/.vscode-server/extensions/github.copilot-chat-0.16.0/dist/extension.js:1164:7377)
    at Function.createIntentInvocation (/home/tigaron-wsl/.vscode-server/extensions/github.copilot-chat-0.16.0/dist/extension.js:818:5585)
    at K6._provideResponseWithProgress (/home/tigaron-wsl/.vscode-server/extensions/github.copilot-chat-0.16.0/dist/extension.js:844:553)
    at K6.provideResponseWithProgress (/home/tigaron-wsl/.vscode-server/extensions/github.copilot-chat-0.16.0/dist/extension.js:842:8996)
    at n.z (/home/tigaron-wsl/.vscode-server/extensions/github.copilot-chat-0.16.0/dist/extension.js:854:1972)
    at g.$invokeAgent (/home/tigaron-wsl/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/out/vs/workbench/api/node/extensionHostProcess.js:155:49553)
lramos15 commented 3 months ago

@tigaron I assume you don't have any weird network setups? Just normal WSL?

tigaron commented 3 months ago

@tigaron I assume you don't have any weird network setups? Just normal WSL?

Yes, just normal WSL

drisul10 commented 3 months ago

Hello guys, any update here? I've got same error on normal WSL

lramos15 commented 3 months ago

Please try VS Code insiders and the latest pre-release of the extension. That should be version v0.17.2024061201

Insiders can be found here

Can you do F1 > Developer: Toggle Developer Tools and also post the logs from there

If we cannot get to the bottom of it, insiders will allow me to more quickly add logs to get all of you unblocked. Thank you!

pwnlxrd commented 3 months ago
## Copilot

- Version: 1.200.926
- Build: nightly
- Editor: vscode/1.91.0-insider

## Environment

- http_proxy: n/a
- https_proxy: n/a
- no_proxy: n/a
- SSL_CERT_FILE: n/a
- SSL_CERT_DIR: n/a
- OPENSSL_CONF: n/a

## Feature Flags

- Send Restricted Telemetry: disabled
- Chat: enabled

## Node setup

- Number of root certificates: 141
- Operating system: Darwin
- Operating system version: 23.5.0
- Operating system architecture: arm64
- NODE_OPTIONS: n/a
- NODE_EXTRA_CA_CERTS: n/a
- NODE_TLS_REJECT_UNAUTHORIZED: n/a
- tls default min version: TLSv1.2
- tls default max version: TLSv1.3

## Network Configuration

- Proxy host: n/a
- Proxy port: n/a
- Kerberos SPN: n/a
- Reject unauthorized: disabled
- Fetcher: HelixFetcher

## Reachability

- github.com: HTTP 200
- copilot-proxy.githubusercontent.com: HTTP 200
- api.githubcopilot.com: HTTP 200
- default.exp-tas.com: HTTP 200

## VS Code Configuration

- HTTP proxy: 
- HTTP proxy authentication: n/a
- Proxy Strict SSL: true
- Extension HTTP proxy support: override

## Extensions

- Is `win-ca` installed?: false
- Is `mac-ca` installed?: false

## Authentication

- GitHub username: pwnlxrd

copilot log (full):

2024-06-12 17:30:55.946 [info] [fetcher] Using Helix fetcher.
2024-06-12 17:30:55.946 [info] [code-referencing] Public code references are enabled.
2024-06-12 17:30:55.960 [info] [auth] Sucessfully authenticated
2024-06-12 17:30:55.966 [info] [fetcher] Using Helix fetcher.
2024-06-12 17:30:55.966 [info] [code-referencing] Public code references are enabled.
2024-06-12 17:30:55.966 [info] [fetcher] Using Helix fetcher.
2024-06-12 17:30:55.966 [info] [code-referencing] Public code references are enabled.
2024-06-12 17:30:56.486 [error] [default] Error sending telemetry FetchError: connect ECONNREFUSED 0.0.0.0:443
    at fetch (/Users/pwnlxrd/.vscode-insiders/extensions/github.copilot-1.200.926/node_modules/@adobe/helix-fetch/src/fetch/index.js:99:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at cachingFetch (/Users/pwnlxrd/.vscode-insiders/extensions/github.copilot-1.200.926/node_modules/@adobe/helix-fetch/src/fetch/index.js:288:16)
    at Iq.fetch (/Users/pwnlxrd/.vscode-insiders/extensions/github.copilot-1.200.926/lib/src/network/helix.ts:78:22) {
  type: 'system',
  _name: 'FetchError',
  code: 'ECONNREFUSED',
  errno: -61,
  erroredSysCall: 'connect'
}

copilot chat log (full):

2024-06-12 17:34:53.732 [info] [gitExtensionService] Initializing Git extension service.
2024-06-12 17:34:53.732 [info] [gitExtensionService] Successfully activated the vscode.git extension.
2024-06-12 17:34:53.732 [info] [gitExtensionService] Enablement state of the vscode.git extension: true.
2024-06-12 17:34:53.732 [info] [gitExtensionService] Successfully registered Git commit message provider.
2024-06-12 17:34:53.732 [info] [FetcherService] Using the Helix fetcher.
2024-06-12 17:34:53.829 [info] [auth] Logged in as pwnlxrd
2024-06-12 17:34:53.829 [info] [auth] Logged in as pwnlxrd
2024-06-12 17:34:54.421 [info] [chat] copilot token chat_enabled: true
2024-06-12 17:34:54.421 [info] [githubTitleAndDescriptionProvider] Initializing GitHub PR title and description provider provider.
2024-06-12 17:34:54.421 [info] [githubTitleAndDescriptionProvider] GitHub.vscode-pull-request-github extension is not yet activated.
2024-06-12 17:34:54.434 [info] [auth] Got Copilot token for pwnlxrd
2024-06-12 17:34:54.476 [info] [auth] Logged in as pwnlxrd
2024-06-12 17:34:54.477 [info] [chat] copilot token chat_enabled: true
2024-06-12 17:34:54.477 [info] [auth] Got Copilot token for pwnlxrd
2024-06-12 17:34:54.483 [info] [chat] copilot token chat_enabled: true
2024-06-12 17:34:54.483 [info] [auth] Got Copilot token for pwnlxrd
2024-06-12 17:34:55.712 [info] [extension] GitHub Copilot could not connect to server. Extension activation failed: "Unable to resolve embeddings model with family selection: text-embedding-ada-002"
2024-06-12 17:35:26.194 [info] [extension] Error: Unable to resolve chat model with family selection: gpt-4
    at PA.getChatModel (/Users/pwnlxrd/.vscode-insiders/extensions/github.copilot-chat-0.17.2024061201/dist/extension.js:1177:6304)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at rE.getChatEndpoint (/Users/pwnlxrd/.vscode-insiders/extensions/github.copilot-chat-0.17.2024061201/dist/extension.js:1177:8653)
    at Function.createIntentInvocation (/Users/pwnlxrd/.vscode-insiders/extensions/github.copilot-chat-0.17.2024061201/dist/extension.js:827:6229)
    at Z6._provideResponseWithProgress (/Users/pwnlxrd/.vscode-insiders/extensions/github.copilot-chat-0.17.2024061201/dist/extension.js:853:553)
    at Z6.provideResponseWithProgress (/Users/pwnlxrd/.vscode-insiders/extensions/github.copilot-chat-0.17.2024061201/dist/extension.js:851:9003)
    at n.z (/Users/pwnlxrd/.vscode-insiders/extensions/github.copilot-chat-0.17.2024061201/dist/extension.js:863:1972)
    at m.$invokeAgent (/private/var/folders/y2/f4z84cnn673c9n6fg38hpg4h0000gn/T/AppTranslocation/B7211BD5-1EC1-46F3-AD02-A0EC6AEED315/d/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:154:50063)

I use vs code insider and GitHub copilot chat v0.17.2024061201 (pre-release)

pwnlxrd commented 3 months ago

vscode-app.har.zip and har add

tigaron commented 3 months ago

Please try VS Code insiders and the latest pre-release of the extension. That should be version v0.17.2024061201

Insiders can be found here

Can you do F1 > Developer: Toggle Developer Tools and also post the logs from there

If we cannot get to the bottom of it, insiders will allow me to more quickly add logs to get all of you unblocked. Thank you!

github copilot log:

2024-06-12 21:40:23.659 [info] [fetcher] Using Helix fetcher, Electron fetcher is not available.
2024-06-12 21:40:23.659 [info] [code-referencing] Public code references are enabled.
2024-06-12 21:40:23.707 [info] [auth] Sucessfully authenticated
2024-06-12 21:40:24.849 [error] [default] Error sending telemetry FetchError: 
    at fetch (/home/tigaron-wsl/.vscode-server-insiders/extensions/github.copilot-1.200.926/node_modules/@adobe/helix-fetch/src/fetch/index.js:99:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at cachingFetch (/home/tigaron-wsl/.vscode-server-insiders/extensions/github.copilot-1.200.926/node_modules/@adobe/helix-fetch/src/fetch/index.js:288:16)
    at Iq.fetch (/home/tigaron-wsl/.vscode-server-insiders/extensions/github.copilot-1.200.926/lib/src/network/helix.ts:78:22) {
  type: 'system',
  _name: 'FetchError',
  code: 'ETIMEDOUT',
  errno: undefined,
  erroredSysCall: undefined
}

github copilot chat log:

2024-06-12 21:40:22.426 [info] [gitExtensionService] Initializing Git extension service.
2024-06-12 21:40:22.426 [info] [FetcherService] Using the Helix fetcher.
2024-06-12 21:40:22.426 [info] [gitExtensionService] Successfully activated the vscode.git extension.
2024-06-12 21:40:22.426 [info] [gitExtensionService] Enablement state of the vscode.git extension: true.
2024-06-12 21:40:22.426 [info] [gitExtensionService] Successfully registered Git commit message provider.
2024-06-12 21:40:22.521 [info] [auth] Logged in as tigaron
2024-06-12 21:40:22.521 [info] [auth] Logged in as tigaron
2024-06-12 21:40:23.544 [info] [chat] copilot token chat_enabled: true
2024-06-12 21:40:23.544 [info] [githubTitleAndDescriptionProvider] Initializing GitHub PR title and description provider provider.
2024-06-12 21:40:23.544 [info] [githubTitleAndDescriptionProvider] GitHub.vscode-pull-request-github extension is not yet activated.
2024-06-12 21:40:23.556 [info] [auth] Got Copilot token for tigaron
2024-06-12 21:40:23.732 [info] [chat] copilot token chat_enabled: true
2024-06-12 21:40:23.732 [info] [auth] Got Copilot token for tigaron
2024-06-12 21:40:23.788 [info] [auth] Logged in as tigaron
2024-06-12 21:40:23.795 [info] [chat] copilot token chat_enabled: true
2024-06-12 21:40:23.795 [info] [auth] Got Copilot token for tigaron
2024-06-12 21:40:25.657 [info] [extension] GitHub Copilot could not connect to server. Extension activation failed: "Unable to resolve embeddings model with family selection: text-embedding-ada-002"
2024-06-12 21:40:25.916 [info] [RemoteAgents] Failed to load remote slash commands: Nee
2024-06-12 21:41:03.802 [info] [extension] Error: Unable to resolve chat model with family selection: gpt-4
    at PA.getChatModel (/home/tigaron-wsl/.vscode-server-insiders/extensions/github.copilot-chat-0.17.2024061201/dist/extension.js:1177:6304)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at rE.getChatEndpoint (/home/tigaron-wsl/.vscode-server-insiders/extensions/github.copilot-chat-0.17.2024061201/dist/extension.js:1177:8653)
    at Function.createIntentInvocation (/home/tigaron-wsl/.vscode-server-insiders/extensions/github.copilot-chat-0.17.2024061201/dist/extension.js:827:6229)
    at Z6._provideResponseWithProgress (/home/tigaron-wsl/.vscode-server-insiders/extensions/github.copilot-chat-0.17.2024061201/dist/extension.js:853:553)
    at Z6.provideResponseWithProgress (/home/tigaron-wsl/.vscode-server-insiders/extensions/github.copilot-chat-0.17.2024061201/dist/extension.js:851:9003)
    at n.z (/home/tigaron-wsl/.vscode-server-insiders/extensions/github.copilot-chat-0.17.2024061201/dist/extension.js:863:1972)
    at m.$invokeAgent (/home/tigaron-wsl/.vscode-server-insiders/bin/51d598183ea632c658c34e0a11da5706192a1b69/out/vs/workbench/api/node/extensionHostProcess.js:156:50063)

github copilot diag:

## Copilot

- Version: 1.200.926
- Build: nightly
- Editor: vscode/1.91.0-insider

## Environment

- http_proxy: n/a
- https_proxy: n/a
- no_proxy: n/a
- SSL_CERT_FILE: n/a
- SSL_CERT_DIR: n/a
- OPENSSL_CONF: n/a

## Feature Flags

- Send Restricted Telemetry: disabled
- Chat: enabled

## Node setup

- Number of root certificates: 146
- Operating system: Linux
- Operating system version: 5.15.146.1-microsoft-standard-WSL2
- Operating system architecture: x64
- NODE_OPTIONS: n/a
- NODE_EXTRA_CA_CERTS: n/a
- NODE_TLS_REJECT_UNAUTHORIZED: n/a
- tls default min version: TLSv1.2
- tls default max version: TLSv1.3

## Network Configuration

- Proxy host: n/a
- Proxy port: n/a
- Kerberos SPN: n/a
- Reject unauthorized: disabled
- Fetcher: HelixFetcher

## Reachability

- github.com: HTTP 200
- copilot-proxy.githubusercontent.com: HTTP 200
- api.githubcopilot.com: 
- default.exp-tas.com: HTTP 200

## VS Code Configuration

- HTTP proxy: 
- HTTP proxy authentication: n/a
- Proxy Strict SSL: true
- Extension HTTP proxy support: override

## Extensions

- Is `win-ca` installed?: false
- Is `mac-ca` installed?: false

## Authentication

- GitHub username: tigaron
tigaron commented 3 months ago

Please try VS Code insiders and the latest pre-release of the extension. That should be version v0.17.2024061201

Insiders can be found here

Can you do F1 > Developer: Toggle Developer Tools and also post the logs from there

If we cannot get to the bottom of it, insiders will allow me to more quickly add logs to get all of you unblocked. Thank you!

Here's the log from dev tools: vscode-app-1718204143892.log

lramos15 commented 3 months ago

Hmm @tigaron @pwnlxrd are you behind a corporate proxy or firewall? Does this work in non WSL?

All the logs show you are having trouble connecting to the endpoint needed to make an LLM request.

@tigaron I see in your logs that there is no 200 status next to api.githubcopilot.com

  • github.com: HTTP 200
  • copilot-proxy.githubusercontent.com: HTTP 200
  • api.githubcopilot.com:
  • default.exp-tas.com: HTTP 200
pwnlxrd commented 3 months ago

in my log answer 200

- api.githubcopilot.com: HTTP 200

and I tested this api over curl, its ok

curl -v https://api.githubcopilot.com/_ping
* Host api.githubcopilot.com:443 was resolved.
* IPv6: (none)
* IPv4: 140.82.114.21
*   Trying 140.82.114.21:443...
* Connected to api.githubcopilot.com (140.82.114.21) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256 / [blank] / UNDEF
* ALPN: server accepted h2
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=*.githubcopilot.com
*  start date: Aug 16 00:00:00 2023 GMT
*  expire date: Aug 16 23:59:59 2024 GMT
*  subjectAltName: host "api.githubcopilot.com" matched cert's "*.githubcopilot.com"
*  issuer: C=US; O=DigiCert Inc; CN=DigiCert Global G2 TLS RSA SHA256 2020 CA1
*  SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://api.githubcopilot.com/_ping
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: api.githubcopilot.com]
* [HTTP/2] [1] [:path: /_ping]
* [HTTP/2] [1] [user-agent: curl/8.6.0]
* [HTTP/2] [1] [accept: */*]
> GET /_ping HTTP/2
> Host: api.githubcopilot.com
> User-Agent: curl/8.6.0
> Accept: */*
>
< HTTP/2 200
< date: Wed, 12 Jun 2024 15:16:50 GMT
< content-length: 2
< content-type: text/plain; charset=utf-8
< x-github-backend: Kubernetes
< x-github-request-id: D858:648C1:448CC4:548356:6669BBE2
<
* Connection #0 to host api.githubcopilot.com left intact
OK%
tigaron commented 3 months ago

@lramos15 no, i don't use corporate proxy, i only use home wifi and yes, it works on my windows/wsl host

i also tested it with curl from my wsl:

➜  curl -v https://api.githubcopilot.com/_ping
*   Trying 140.82.113.22:443...
*   Trying 64:ff9b::8c52:7015:443...
* Immediate connect fail for 64:ff9b::8c52:7015: Network is unreachable
* Connected to api.githubcopilot.com (140.82.113.22) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.2 (OUT), TLS header, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=*.githubcopilot.com
*  start date: Aug 16 00:00:00 2023 GMT
*  expire date: Aug 16 23:59:59 2024 GMT
*  subjectAltName: host "api.githubcopilot.com" matched cert's "*.githubcopilot.com"
*  issuer: C=US; O=DigiCert Inc; CN=DigiCert Global G2 TLS RSA SHA256 2020 CA1
*  SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* Using Stream ID: 1 (easy handle 0x55b36a792eb0)
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
> GET /_ping HTTP/2
> Host: api.githubcopilot.com
> user-agent: curl/7.81.0
> accept: */*
>
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
< HTTP/2 200
< date: Wed, 12 Jun 2024 15:24:44 GMT
< content-length: 2
< content-type: text/plain; charset=utf-8
< x-github-backend: Kubernetes
< x-github-request-id: 8340:5DB8C:10314D0:150FC53:6669BDBB
<
* Connection #0 to host api.githubcopilot.com left intact
OK
tigaron commented 3 months ago

@lramos15 i think i found the issue for my case

when i tried to hit api.githubcopilot.com with curl, i noticed the connection issue to ipv6 address so i disabled ipv6 for my wsl and now copilot chat is working again

➜  curl -v https://api.githubcopilot.com/_ping
*   Trying 140.82.113.22:443...
*   Trying 64:ff9b::8c52:7015:443...
* Immediate connect fail for 64:ff9b::8c52:7015: Network is unreachable
* Connected to api.githubcopilot.com (140.82.113.22) port 443 (#0)

image

lramos15 commented 3 months ago

That's a great find @tigaron! I wonder if there is any way we could've detected that on our end to give a better error message.

pwnlxrd commented 3 months ago

I set up ipv6 on the router and everything worked

image
EvanJameson commented 3 months ago

I'm also experiencing the root Unable to resolve model with family selection: gpt-4 issue, however I'm encountering a different result when hitting api.githubcopilot.com with curl:

$ curl -v https://api.githubcopilot.com/_ping
*   Trying 140.82.114.22:443...
* Connected to api.githubcopilot.com (140.82.114.22) port 443 (#0)
* schannel: disabled automatic use of client certificate
* schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
* Closing connection 0
* schannel: shutting down SSL/TLS connection with api.githubcopilot.com port 443
curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.

For reference I am on a corporate VPN (GlobalProtect), but am currently in office, so I'm connected to our internal network.

lramos15 commented 3 months ago

@EvanJameson Are you also using WSL?

cc @alexdima @chrmarti

EvanJameson commented 3 months ago

@lramos15 I am not, just running Windows 10 Enterprise

Version 22H2 OS Build 19045.4412

nikunj-nrma commented 3 months ago

i am getting the same error.

2024-06-13 09:47:48.268 [info] [auth] Logged in as XXXX 2024-06-13 09:47:48.740 [info] [chat] copilot token chat_enabled: true 2024-06-13 09:47:48.741 [info] [auth] Got Copilot token for XXXX 2024-06-13 09:47:48.762 [info] [chat] copilot token chat_enabled: true 2024-06-13 09:47:48.763 [info] [auth] Got Copilot token for XXXX 2024-06-13 09:47:49.293 [info] [RemoteAgents] Failed to load remote slash commands: Nee: unable to get local issuer certificate 2024-06-13 09:48:51.755 [info] [extension] Error: Unable to resolve chat model with family selection: gpt-4

chrmarti commented 3 months ago

@tigaron @pwnlxrd How did you enable ipv6 in WSL? Maybe you are using WSL's new mirrored networking mode? What do you get for wsl --version? I'm not sure this is a bug on our side, but maybe we can detect it and/or work around it.

tigaron commented 3 months ago

@chrmarti I didn't enable it myself, I think it was already enabled by default, and that was causing the issue for me so I disabled it by adding this config below to my .wslconfig file:

[wsl2]
kernelCommandLine=ipv6.disable=1

This is what I get for wsl --version

WSL version: 2.1.5.0
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.3737
PaoloScompa commented 3 months ago

I have the same issue on Windows 10

Version: 1.90.0 (user setup) Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573 Date: 2024-06-04T19:33:54.889Z Electron: 29.4.0 ElectronBuildId: 9593362 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0.19045

ERR [Extension Host] [extension] Error: Unable to resolve model with family selection: gpt-4 at Z2.getChatModel (c:\Users\pscompa\.vscode\extensions\github.copilot-chat-0.16.2024061102\dist\extension.js:1164:5671) at processTicksAndRejections (node:internal/process/task_queues:95:5) at IT.getChatEndpoint (c:\Users\pscompa\.vscode\extensions\github.copilot-chat-0.16.2024061102\dist\extension.js:1164:7377) at u8.invoke (c:\Users\pscompa\.vscode\extensions\github.copilot-chat-0.16.2024061102\dist\extension.js:883:8336) at K6._provideResponseWithProgress (c:\Users\pscompa\.vscode\extensions\github.copilot-chat-0.16.2024061102\dist\extension.js:844:553) at K6.provideResponseWithProgress (c:\Users\pscompa\.vscode\extensions\github.copilot-chat-0.16.2024061102\dist\extension.js:842:8996) at n.z (c:\Users\pscompa\.vscode\extensions\github.copilot-chat-0.16.2024061102\dist\extension.js:854:1972) at m.$invokeAgent (c:\Users\pscompa\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:153:49553)

asmaataib commented 3 months ago
image

I have the same issue, someone can help to solve it? Thanks

chrmarti commented 3 months ago

@asmaataib Are you connected to WSL? If so, what do you get when running ip a and curl -v https://api.githubcopilot.com/_ping in WSL?

josanjohnata commented 3 months ago

I have the same issue

When running curl -v https://api.githubcopilot.com/_ping return: `> curl -v https://api.githubcopilot.com/_ping 10s 11:01:13

BinaryFusion-00 commented 3 months ago

I've the same issue as well since VS code and Github copilot got udpated few days ago. It used to work prior to that. It works on plain VS-Code. But not within WSL

josanjohnata commented 3 months ago

In my case it is not working in either environment, plain vs-code and wsl. 😢

laorient commented 3 months ago

For those who have Netscope client installed by corporate, be sure to turn it off. As it disrupted my instance of copilot from working.

CheetahChrome commented 3 months ago

When I use my corporate "Cloud PC" virtual I get the error on a corporate machine. But if work on my personal local machine, same account, same VS Code versions (latest), I do not get the error.

If this helps.

Xpos587 commented 3 months ago

I have the same problem, via curl the request status is 200, disabling ipv6 does not help, I am using Ubuntu 24.04 LTS with VSCode (1.90.1).

PariharAditya commented 3 months ago

We are currently experiencing an issue where Copilot is functioning on the normal window but displaying the error message "Unable to resolve model with family selection: gpt-4" on WSL.

chrmarti commented 2 months ago

We are adding a UI command to collect diagnostics on network issues. Could everyone seeing this install VS Code Insiders (http://code.visualstudio.com/insiders/) and the latest GitHub Copilot Chat pre-release version (currently v0.17.2024061701) and then run F1 > Developer: GitHub Copilot Chat Diagnostics and share the output here?

chkp-talron commented 2 months ago

GitHub Copilot Chat

Network

User Settings:

  "github.copilot.advanced": {
    "debug.useElectronFetcher": false,
    "debug.useNodeFetcher": false
  }

DNS Lookup api.githubcopilot.com: 140.82.114.21

Fetching https://api.githubcopilot.com/_ping:

chrmarti commented 2 months ago

@chkp-talron Could you install the Network Proxy Test extension (https://marketplace.visualstudio.com/items?itemName=chrmarti.network-proxy-test) and check the output of F1 > Network Proxy Test: Test Connection for https://api.githubcopilot.com/_ping in VS Code?

nicola-lunghi commented 2 months ago

same issue here

2024-06-17 17:25:30.587 [info] [extension] Error: Unable to resolve model with family selection: gpt-4
    at Z2.getChatModel (/home/user/.vscode-server/extensions/github.copilot-chat-0.16.1/dist/extension.js:1164:5671)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at IT.getChatEndpoint (/home/user/.vscode-server/extensions/github.copilot-chat-0.16.1/dist/extension.js:1164:7377)
    at t.invoke (/home/user/.vscode-server/extensions/github.copilot-chat-0.16.1/dist/extension.js:888:6759)
    at K6._provideResponseWithProgress (/home/user/.vscode-server/extensions/github.copilot-chat-0.16.1/dist/extension.js:844:553)
    at K6.provideResponseWithProgress (/home/user/.vscode-server/extensions/github.copilot-chat-0.16.1/dist/extension.js:842:8996)
    at n.z (/home/user/.vscode-server/extensions/github.copilot-chat-0.16.1/dist/extension.js:854:1972)
    at g.$invokeAgent (/home/user/.vscode-server/bin/611f9bfce64f25108829dd295f54a6894e87339d/out/vs/workbench/api/node/extensionHostProcess.js:155:49553)

copilot extension 0.16.1
chkp-talron commented 2 months ago

https://api.githubcopilot.com/_ping

VS Code 1.91.0-insider (0da59bdde2339d6ba632524dc8f3fb6f4b8a2bcb) Network Proxy Test 0.0.11 win32 10.0.19045 x64

Settings:

Environment variables:

Sending GET request to https://api.githubcopilot.com/_ping... vscode-proxy-agent: DIRECT Received error: unable to get local issuer certificate (UNABLE_TO_GET_ISSUER_CERT_LOCALLY) Retrying while ignoring certificate issues to collect information on the certificate chain.

Sending GET request to https://api.githubcopilot.com/_ping (allowing unauthorized)... vscode-proxy-agent: DIRECT Received response:

chrmarti commented 2 months ago

@chkp-talron This looks like you are behind some kind of transparent proxy for which there is a certificate in the Intermediate Certification Authorities installed in Windows' Certificate Manager (start with WinKey + R > certmgr.msc). Try adding that certificate also to the Trusted Root Certification Authorities certificates in the Certificate Manager. The certificate to look for is probably the last one in the list you got from the command above. (We are tracking support for intermediate CAs as https://github.com/microsoft/vscode/issues/177139.)

chkp-talron commented 2 months ago

@chkp-talron This looks like you are behind some kind of transparent proxy for which there is a certificate in the Intermediate Certification Authorities installed in Windows' Certificate Manager (start with WinKey + R > certmgr.msc). Try adding that certificate also to the Trusted Root Certification Authorities certificates in the Certificate Manager. The certificate to look for is probably the last one in the list you got from the command above. (We are tracking support for intermediate CAs as microsoft/vscode#177139.)

the certificate from report in "Local root certificates" was found in my "Intermediate Certification Authorities" & "Trusted Root Certification Authorities certificates". the last certificate from the chain was not found and ive added it to both places. but got the same error

chkp-talron commented 2 months ago

this is strange. I've tested again vscode (not insiders. latest version) and copilot works (no error). even non-insiders sometimes gives me error I've tried to compare both setups when moved to release version of copilot:

Name: GitHub Copilot
Id: GitHub.copilot
Description: Your AI pair programmer
Version: 1.204.0
Publisher: GitHub
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=GitHub.copilot
Name: GitHub Copilot Chat
Id: GitHub.copilot-chat
Description: AI chat features powered by Copilot
Version: 0.16.1
Publisher: GitHub
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat

vscode:

Version: 1.90.1 (user setup)
Commit: 611f9bfce64f25108829dd295f54a6894e87339d
Date: 2024-06-11T21:01:24.262Z
Electron: 29.4.0
ElectronBuildId: 9593362
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.19045

vscode-insiders

Version: 1.91.0-insider (user setup)
Commit: 406d1d726fc68ab1146a2baf8afd134d5b95075a
Date: 2024-06-17T20:52:39.782Z
Electron: 29.4.0
ElectronBuildId: 9593362
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.19045

I've run the Network Proxy Test on both setups:

VS Code 1.90.1 (611f9bfce64f25108829dd295f54a6894e87339d)
Network Proxy Test 0.0.11
win32 10.0.19045 x64

Settings:
- http.proxy: 
- http.proxyAuthorization: null
- http.proxyStrictSSL: true
- http.proxySupport: override
- http.systemCertificates: true

Environment variables:

Sending GET request to https://api.githubcopilot.com/_ping...
vscode-proxy-agent: DIRECT
Received response:
- Status: 200 OK
Certificate chain:
- Subject: *.githubcopilot.com (GitHub, Inc.)
  Subject alt: DNS:*.githubcopilot.com, DNS:githubcopilot.com
  Validity: Aug 16 00:00:00 2023 GMT - Aug 16 23:59:59 2024 GMT
  Fingerprint: 0B:78:03:7C:76:F5:96:14:F8:20:83:79:6D:2C:80:4B:06:B0:DB:D4
- Subject: **removed**
- Subject: **removed**  (note: this is the rootCA certificate)
  Self-signed
Local root certificates:
- **removed**
VS Code 1.91.0-insider (406d1d726fc68ab1146a2baf8afd134d5b95075a)
Network Proxy Test 0.0.11
win32 10.0.19045 x64

Settings:
- http.proxy: 
- http.proxyAuthorization: null
- http.proxyStrictSSL: true
- http.proxySupport: override
- http.systemCertificates: true

Environment variables:

Sending GET request to https://api.githubcopilot.com/_ping...
vscode-proxy-agent: DIRECT
Received error: unable to get local issuer certificate (UNABLE_TO_GET_ISSUER_CERT_LOCALLY)
Retrying while ignoring certificate issues to collect information on the certificate chain.

Sending GET request to https://api.githubcopilot.com/_ping (allowing unauthorized)...
vscode-proxy-agent: DIRECT
Received response:
- Status: 200 OK
Certificate chain:
- Subject: *.githubcopilot.com (GitHub, Inc.)
  Subject alt: DNS:*.githubcopilot.com, DNS:githubcopilot.com
  Validity: Aug 16 00:00:00 2023 GMT - Aug 16 23:59:59 2024 GMT
  Fingerprint: 0B:78:03:7C:76:F5:96:14:F8:20:83:79:6D:2C:80:4B:06:B0:DB:D4
- Subject: **removed**
  Issuer certificate '**removed**' not in certificate chain of the server.
Local root certificates:
- **removed**

Note that for VSCode (non-insiders) the certificate chain includes 3 certificates where the last is a rootCA certificate while for vscode-insiders there are only 2 certificates when the last one (same one as the 2nd certificate from non-insiders) appears with "not in certificate chain of the server"

it seems certificates check in these 2 vscode variants is different although i did see errors in non-insiders variant before but not sure if the extension version was latest (release or pre-release.) right now it seems i was able to check same setup and noticed the differences

HTH

brighton-ifaya commented 2 months ago

Well, I see windows users here alot so I'll point out that it gives the same "Unable to resolve model with family selection: gpt-4" in Ubuntu. Just noticed today while trying to use it. This is from a plain VsCode.

024-06-18 09:06:02.263 [info] [extension] Error: Unable to resolve model with family selection: gpt-4
    at Z2.getChatModel (/home/shifu/.vscode/extensions/github.copilot-chat-0.16.1/dist/extension.js:1164:5671)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at IT.getChatEndpoint (/home/shifu/.vscode/extensions/github.copilot-chat-0.16.1/dist/extension.js:1164:7377)
    at Function.createIntentInvocation (/home/shifu/.vscode/extensions/github.copilot-chat-0.16.1/dist/extension.js:818:5585)
    at K6._provideResponseWithProgress (/home/shifu/.vscode/extensions/github.copilot-chat-0.16.1/dist/extension.js:844:553)
    at K6.provideResponseWithProgress (/home/shifu/.vscode/extensions/github.copilot-chat-0.16.1/dist/extension.js:842:8996)
    at n.z (/home/shifu/.vscode/extensions/github.copilot-chat-0.16.1/dist/extension.js:854:1972)
    at m.$invokeAgent (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:153:49553)
chrmarti commented 2 months ago

@chkp-talron Make sure you restart VS Code Insiders (close all its windows) after you added the additional CA to the root certificates, it reads these only once per session. (I'm not sure why the certificate chain returned by the server doesn't have the same number of certificates though.)

chkp-talron commented 2 months ago

@chkp-talron Make sure you restart VS Code Insiders (close all its windows) after you added the additional CA to the root certificates, it reads these only once per session. (I'm not sure why the certificate chain returned by the server doesn't have the same number of certificates though.)

I've tried that (restart code insiders) and getting the same error and 2 certificates in the chain instead of 3

chrmarti commented 2 months ago

@chkp-talron I'm not aware of any changes between these versions. Could you check with F1 > Network Proxy Test: Show OS Certificates if the certificate is loaded?

kyhau commented 2 months ago

@chkp-talron : this is strange. I've tested again vscode (not insiders. latest version) and copilot works (no error). even non-insiders sometimes gives me error I've tried to compare both setups when moved to release version of copilot:

I can reproduce what @chkp-talron mentioned above.

On the other hand, checked with F1 > Network Proxy Test: Show OS Certificates on both VS Code Insiders and VS Code, the outputs are the same (except the line about the app version).

>> VS Code 1.91.0-insider (406d1d726fc68ab1146a2baf8afd134d5b95075a)
<< VS Code 1.90.1 (611f9bfce64f25108829dd295f54a6894e87339d)
chrmarti commented 2 months ago

@kyhau Could you use VS Code Insiders (http://code.visualstudio.com/insiders/) and the latest GitHub Copilot Chat pre-release version and run F1 > Developer: GitHub Copilot Chat Diagnostics and share the output here? That will tell us if the underlying reason is similar to the one @chkp-talron is seeing.

kyhau commented 2 months ago

@kyhau Could you use VS Code Insiders (http://code.visualstudio.com/insiders/) and the latest GitHub Copilot Chat pre-release version and run F1 > Developer: GitHub Copilot Chat Diagnostics and share the output here? That will tell us if the underlying reason is similar to the one @chkp-talron is seeing.

@chrmarti , here's the output, thanks.

## GitHub Copilot Chat

- Extension Version: 0.17.2024061801 (prod)
- VS Code: vscode/1.91.0-insider
- OS: Windows

## Network

User Settings:
  "github.copilot.advanced": {
    "debug.useElectronFetcher": false,
    "debug.useNodeFetcher": false
  }

DNS Lookup api.githubcopilot.com: 140.82.112.22

Fetching https://api.githubcopilot.com/_ping:
- Electron Fetcher: HTTP 200
- Node Fetcher: Error: self signed certificate in certificate chain
- Helix Fetcher (configured): timed out after 10 seconds
chkp-talron commented 2 months ago

Show OS Certificates

Show OS Certificates gives the same list on both vscode variants. the relevant certificate (2nd from 3 in vscode and last in chain in vscode insiders) does not appear in the list of both variants