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
327 stars 31 forks source link

WSL: Error Code: ETIMEDOUT #1484

Open chrmarti opened 2 months ago

chrmarti commented 2 months ago

@chrmarti I am running latest VSCode 1.92.0 connected to WSL. I am getting the following error sporadically (Yesterday it worked most of the time and today it worked once or twice):

Please check your firewall rules and network connection then try again. Error Code: ETIMEDOUT

Here is the log (Github Copilot: Open Logs):


2024-08-08 14:21:52.490 [info] [streamChoices] request done: headerRequestId: [5b4d17fa-b6d2-4e53-b564-98108264bfcf] model deployment ID: [d086-20240807144915]

2024-08-08 14:22:28.198 [error] [default] Error sending telemetry FetchError: 

    at fetch (/home/arnabb/.vscode-server/extensions/github.copilot-1.221.0/node_modules/@adobe/helix-fetch/src/fetch/index.js:99:11)

    at processTicksAndRejections (node:internal/process/task_queues:95:5)

    at cachingFetch (/home/arnabb/.vscode-server/extensions/github.copilot-1.221.0/node_modules/@adobe/helix-fetch/src/fetch/index.js:288:16)

    at OO.fetch (/home/arnabb/.vscode-server/extensions/github.copilot-1.221.0/lib/src/network/helix.ts:96:22) {

  type: 'system',

  _name: 'FetchError',

  code: 'ETIMEDOUT',

  errno: undefined,

  erroredSysCall: undefined

}

Output of "Developer: GitHub Copilot Chat Diagnostics" when things are NOT working:

GitHub Copilot Chat

  • Extension Version: 0.18.1 (prod)

  • VS Code: vscode/1.92.0

  • OS: Linux

  • Remote Name: wsl

Network

User Settings:


  "github.copilot.advanced": {

    "debug.useElectronFetcher": true,

    "debug.useNodeFetcher": false

  }

Connecting to https://api.github.com:

  • DNS Lookup: 20.207.73.85

  • Electron Fetcher: Unavailable

  • Node Fetcher: HTTP 200

  • Helix Fetcher (configured): HTTP 200

Connecting to https://api.githubcopilot.com/_ping:

  • DNS Lookup: 140.82.112.21

  • Electron Fetcher: Unavailable

  • Node Fetcher: timed out after 10 seconds

  • Helix Fetcher (configured): timed out after 10 seconds

Documentation

In corporate networks: Troubleshooting firewall settings for GitHub Copilot.

Output of "Developer: GitHub Copilot Chat Diagnostics" when things are working:


## GitHub Copilot Chat

- Extension Version: 0.18.1 (prod)

- VS Code: vscode/1.92.0

- OS: Linux

- Remote Name: wsl

## Network

User Settings:

```json

  "github.copilot.advanced": {

    "debug.useElectronFetcher": true,

    "debug.useNodeFetcher": false

  }

Connecting to https://api.github.com:

  • DNS Lookup: 20.207.73.85

  • Electron Fetcher: Unavailable

  • Node Fetcher: HTTP 200

  • Helix Fetcher (configured): HTTP 200

Connecting to https://api.githubcopilot.com/_ping:

  • DNS Lookup: 140.82.113.21

  • Electron Fetcher: Unavailable

  • Node Fetcher: HTTP 200

  • Helix Fetcher (configured): HTTP 200

Documentation

In corporate networks: Troubleshooting firewall settings for GitHub Copilot.

Originally posted by @arnabbiswas1 in #541

chrmarti commented 2 months ago

@arnabbiswas1 Are you changing WSL distros or maybe moving your machine between networks (e.g., home and office) between the two?

purp1e-ace commented 2 months ago

same here

nitinsanatan1 commented 1 month ago

I was also facing this issue, turned out that my network proxy DNS was unable to resolve the github. I made changes in my network DNS & changed it to google DNS (primary: 8.8.8.8, secondary 8.8.4.4). Works for me now.

Amroning commented 1 month ago

I was also facing this issue, turned out that my network proxy DNS was unable to resolve the github. I made changes in my network DNS & changed it to google DNS (primary: 8.8.8.8, secondary 8.8.4.4). Works for me now.

thanks bro.it works