Skip to content
86% off$349 $48.86code BF2026

Guides

Copilot failed to get ready: fix the GitHub sign-in error

Fix "Copilot failed to get ready. Please ensure you are signed in to GitHub" in VS Code, plus related JetBrains and Visual Studio sign-in errors.

TroubleshootingUpdated 7 min read

On this page

You open Copilot Chat and see:

text
Copilot failed to get ready. Please ensure you are signed in to GitHub and that the extension GitHub.copilot-chat is installed and enabled.

The same family of problems shows up in other IDEs with different wording. JetBrains IDEs show "An error occurred while processing your request. Please try again later." Some GitHub Enterprise setups loop through sign-in and end in a 401 "Bad credentials". Visual Studio can show "Error Code: -1 GitHubOperationException".

Why Copilot says it failed to get ready

The message is generic. In the reports we reviewed, these causes come up most often:

  1. A stale or damaged saved session. The editor still shows your name, but the token behind it no longer works.
  2. The Copilot Chat extension is disabled, missing or outdated. The message names GitHub.copilot-chat, and chat can't start without it.
  3. The wrong account. You signed in with a personal account, but the Copilot seat belongs to a work or school account, or the other way around.
  4. No active Copilot access. The plan expired, or an organization admin hasn't assigned you a seat.
  5. A network layer in the way. Proxies, VPNs, TLS inspection and IPv6 blocks can break sign-in or chat requests even when your browser works.
  6. A GitHub-side incident. Rare, but it happens.

We don't know of one root cause behind every report of this exact message, so work through the fixes in order.

What you seeMost likely causeFix
"Copilot failed to get ready…" in VS CodeStale sign-in or disabled extension1, 2
Signed in, but chat won't startWrong account or no Copilot access3
Sign-in loop ending in 401 "Bad credentials"Old token or wrong account4
Login hangs, or -1 GitHubOperationExceptionProxy, VPN or certificate inspection5
JetBrains "An error occurred while processing your request"Session, plugin, network or service issue6

Step-by-step fixes

Fix 1: Sign out and back in

This is the answer people most often report working.

  1. In VS Code, click the Accounts icon in the activity bar and sign out of your GitHub account. Or press ⇧⌘P (Command-Shift-P) and run GitHub: Sign Out.
  2. Sign in again from the Accounts menu or with GitHub: Sign In. Finish the login in the browser.
  3. Run Developer: Reload Window from the Command Palette.
  4. Look for the Copilot icon in the status bar.

If several GitHub accounts are logged in to your browser, check which one the login page shows before you authorize. That page decides which account the editor gets.

Fix 2: Check the Copilot Chat extension

  1. Press ⇧⌘X (Command-Shift-X) to open Extensions.
  2. Search for GitHub Copilot Chat.
  3. If the button says Enable, click it. If it says Update, update. If the extension is missing, install it.
  4. Check that it isn't disabled for the current workspace only.
  5. Run Developer: Reload Window.

To test for interference from another extension, run code --disable-extensions in Terminal and sign in from Accounts. This only affects that session. If it works, re-enable your extensions one at a time to find the culprit.

Fix 3: Confirm the account has Copilot

  1. In a browser, sign in to GitHub with the account you used in the editor.
  2. Open github.com/settings/copilot and check that Copilot is active.
  3. If your access comes from an organization, ask the admin to confirm Copilot is enabled for your user.
  4. Once access is sorted, repeat Fix 1 and pick the right account at the browser step.

Fix 4: The 401 "Bad credentials" loop on GitHub Enterprise

A 401 means the server rejected the credentials the IDE sent. Usually that's an old saved token, or an account without a seat.

  1. Sign out fully, as in Fix 1.
  2. Quit the IDE with ⌘Q and reopen it.
  3. Sign in with the account that belongs to your enterprise.
  4. If the loop continues, ask your GitHub admin to confirm your seat. How you point an IDE at an enterprise server differs by IDE and version, so follow GitHub's current instructions for your IDE.

Fix 5: A proxy, VPN or firewall is in the way

Symptom: the browser login never completes, the editor hangs on sign-in, or Visual Studio shows Error Code: -1 GitHubOperationException.

In a reported Visual Studio case, a Microsoft reply said choosing the IDE's OS Configuration option in its network settings unblocked the login. This is a single report, not documented guidance, and the menu path varies by version, so search the options dialog for "network" or "proxy". Restart the IDE and sign in again.

Microsoft's Visual Studio proxy and firewall troubleshooting page covers related cases. It is written for Visual Studio on Windows, but the causes apply more widely:

  • If you can sign in and Copilot shows as authenticated, but Copilot Chat errors out, the page says possible causes include proxies that block specific endpoints or general IPv6 traffic, so check that your proxy or firewall isn't blocking IPv6.
  • Its preferred fix is to allow IPv6 through the proxy; the alternative is to set the environment variable DOTNET_SYSTEM_NET_DISABLEIPV6 to 1 to force IPv4.
  • Most versions of Visual Studio don't support Copilot behind an authenticating proxy that uses basic authentication.
  • For NTLM or Kerberos proxies, it says to set VS_USE_DEFAULTPROXY to true, and for Copilot also COPILOT_USE_DEFAULTPROXY to true.

TLS inspection is another cause. A Microsoft troubleshooting page for a related Copilot product says that if a proxy decrypts the GitHub Copilot endpoints, sign-in fails because the intercepting certificate breaks the trusted connection. Allow-listing hosts isn't enough in that case. Your IT team needs to exempt those endpoints from inspection.

For other editors:

  • VS Code: open Settings with ⌘, and search for "proxy". If your network needs a proxy, http.proxy should match what IT gave you. If you set it by mistake, clear it.
  • JetBrains IDEs: open Settings with ⌘, and search for "HTTP Proxy". Choose the option that matches your network, then use Check connection against a GitHub URL.
  • Any IDE: try a phone hotspot once. If it works there, the cause is your network.

Fix 6: JetBrains "An error occurred while processing your request"

This was reported in a JetBrains IDE on macOS 15.5. The wording says nothing specific, so go through the usual suspects.

  1. Check GitHub's status page for an active incident. If there is one, wait.
  2. Open Settings with ⌘, and go to Plugins. Update the GitHub Copilot plugin, and update the IDE if it offers a new version.
  3. Sign out of Copilot in the plugin and sign in again. Labels vary by plugin version, so search Settings for "Copilot" if you can't find it.
  4. Quit the IDE with ⌘Q and reopen it.
  5. If it still fails, work through Fix 3 and Fix 5.

Checklist before you try again

  • You are signed in to GitHub in the editor with the account that has Copilot.
  • github.com/settings/copilot shows Copilot active for that account.
  • GitHub Copilot Chat is installed, enabled and updated.
  • You quit and reopened the IDE after signing in.
  • The same account works on another network, or you've ruled out a proxy.
  • The IDE and the Copilot plugin or extension are up to date.

If nothing works

Report it to the tracker or support channel for your IDE: the VS Code issue tracker, the Copilot plugin feedback tracker for JetBrains, or Visual Studio feedback. Search existing reports first, because several people have hit these same errors. If your seat comes from an employer, start with your GitHub or IT admin.

Include:

  • The exact error text, copied verbatim.
  • IDE name and version, Copilot extension or plugin version, and macOS version.
  • Whether the seat is personal, organizational or GitHub Enterprise.
  • Whether it works on another network, and whether you use a proxy or VPN.
  • Relevant log lines. In VS Code, open the Output panel and pick a Copilot entry from the dropdown. Remove tokens first.
text
Subject: Copilot "failed to get ready" despite being signed in

IDE: VS Code (version), macOS (version)
Extensions: GitHub Copilot Chat (version), GitHub Copilot (version)
Error: Copilot failed to get ready. Please ensure you are signed in to GitHub and that the extension GitHub.copilot-chat is installed and enabled.
Account type: personal / organization seat / GitHub Enterprise
Tried: sign out and in, reload and full restart, extension enabled and updated, other network (yes/no), proxy or VPN (yes/no)
Log excerpt: (paste Output > Copilot lines, tokens removed)

Common questions

Does this error mean my Copilot subscription expired?

Not necessarily. It also appears for stale sessions, a disabled extension and network blocks. Check github.com/settings/copilot to see whether Copilot is active on the account.

Why does it work in the browser but not in the IDE?

The IDE makes its own network requests and can use different proxy or certificate settings from your browser. That's why the proxy checks in Fix 5 and a hotspot test are worth trying.

Will reinstalling the IDE fix it?

Rarely on its own. Try the sign-out, extension and network checks first, since they cover the common causes.

Is the GitHub Copilot CLI affected by this IDE error?

The CLI is a separate tool from the IDE extension, so this message doesn't come from it. It still needs a Copilot plan.

Every app.
One purchase.