vscode: Sign in failed: FetchError: request failed, reason: getaddrinfo EAI_AGAIN

Issue

I’m getting this error trying to sign in GitHub on VS Code:

Sign in failed: FetchError: request to https://vscode-auth.github.com/token?code=<code>&state=<state> failed, reason: getaddrinfo EAI_AGAIN vscode-auth.github.com

2021-07-17_13-44

Additional infos

Idk the reason, but i can give you more info about:

  • OS: Arch Linux
  • Kernel: 5.12.15-arch1-1
  • Network: ethernet with neither proxy nor custom dns
  • VS Code Version: 1.58.0-1
  • VS Code Marketplace version: 1.54.3-4 (added manually due to an issue that blocked me from fetching extensions on VS Code)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 21 (2 by maintainers)

Most upvoted comments

Same error here, on Ubuntu Linux

I’m getting the same issue - restarting does not affect the outcome. Happens in both VSCode on windows as a regular extension, and when VSCode is running attached to WSL and the extension are installed via WSL.

I am getting the same issue with GitHub Copilot. Any solutions?!

Restarting VSCode after the installation solved the problem for me.

Docker was really responsible for DNS fail…

A simple Docker restart did not work for me. Instead I did :

  • Stop docker : systemctl stop docker
  • Sign in VsCode with Github … => signin OK this time
  • Start docker again : systemctl start docker

it ded

Pretty sure I wound up finding out that whatever I was looking at when I posted lacked proxy support