How to Fix "Signing in to GitHub Failed: Could Not Reach GitHub to Verify the Selected Account" - Seminarsonly.com How to Fix "Signing in to GitHub Failed: Could Not Reach GitHub to Verify the Selected Account" - Seminarsonly.com
Skip to content
Seminarsonly.com
  • Home
  • Activate
  • Server Status
  • Error Fix
  • Privacy & Cookie Policy
  • Contact Us
  • facebook.com
  • twitter.com
  • t.me
  • instagram.com
  • youtube.com
Subscribe
Home » Error Fix » How to Fix “Signing in to GitHub Failed: Could Not Reach GitHub to Verify the Selected Account”
Posted inError Fix

How to Fix “Signing in to GitHub Failed: Could Not Reach GitHub to Verify the Selected Account”

Posted by Freddy John August 17, 2026

Developer encountering a GitHub HTTPS Authentication Error in their IDE

Quick Answer: How to Fix the GitHub Authentication Error

If your IDE is throwing the error “signing in to github failed. could not reach github to verify the selected account.”, it means your code editor cannot successfully open or complete the browser-based OAuth authentication flow. To fix this immediately:

  • Update Your IDE: Ensure Visual Studio or VS Code, along with the GitHub Copilot extension, is updated to the absolute latest version. Older extensions have broken OAuth integration.
  • Check Proxy/Firewalls: Your corporate VPN or firewall may be blocking https://github.com/login/device. Disable your proxy temporarily in your IDE settings.
  • Clear IDE Auth Cache: Remove stale authentication tokens. In Windows, go to your %LOCALAPPDATA% folder and clear your IDE’s specific identity or Copilot cache folders.
  • Use Default System Browser: Ensure your IDE is set to launch your default operating system browser rather than relying on a bundled internal renderer.

Connecting your GitHub account to your preferred Integrated Development Environment (IDE) like Visual Studio, IntelliJ, or VS Code is usually a seamless experience. However, an increasing number of developers are running into a frustrating roadblock when trying to activate GitHub Copilot or link their version control. The dreaded popup reads: “signing in to github failed. could not reach github to verify the selected account.”

This error is entirely different from a simple “wrong password” git push failure. Instead, it indicates a communication breakdown between your IDE’s internal request handling and GitHub’s OAuth device authorization servers. Whether it is caused by strict corporate firewalls, outdated IDE plugins, or corrupted identity caches, we have the step-by-step solutions to restore your access.

Why This Specific GitHub Login Error Happens

To understand the fix, you must understand the cause. GitHub Copilot and modern IDE syncing do not use your standard SSH key or Personal Access Token (PAT). They require a special browser-based OAuth login (Device Flow). The error triggers when:

  • The Device Code Fails to Generate: Your IDE attempts to ping GitHub for an authorization code, but your local network drops the request.
  • Browser Launch Failure: The IDE attempts to open the default web browser, but operating system permissions or custom JDKs (in IDEs like IntelliJ) block the launch.
  • Account Mismatches (Run-As Issue): If you launch Visual Studio elevated (Run as Administrator) under a different Windows user profile than your active session, the authentication bridge breaks.

How to Fix GitHub Copilot “Failed to Get Copilot Token. ParseFailed” Error

Troubleshooting Matrix by IDE

While the root cause is similar, the exact buttons you need to click depend on the code editor you are using. Follow the matrix below:

IDE Platform Primary Fix Method Secondary Workaround
Visual Studio (Windows) Clear Identity Cache: Delete contents of %LOCALAPPDATA%\.IdentityService. Verify you are running devenv.exe under the correct Windows User Account (No Run-As Admin mismatch).
VS Code Sign in using the GitHub CLI instead: run gh auth login in the terminal. Ensure your Copilot extension version strictly matches your VS Code version build.
IntelliJ / JetBrains Go to Settings > Advanced Settings > IDE, and enable “Use default OS browser for authentication”. Disable the internal IDE HTTP Proxy setting that might be blocking the OAuth redirect.

Check Your Browser’s HSTS Settings

Sometimes, the IDE successfully requests the code, but your web browser refuses to redirect back to the IDE via the local host port because of Strict Transport Security (HSTS). If you are using Chrome or Edge, type chrome://net-internals/#hsts into your address bar, scroll to “Delete domain security policies,” type localhost, and hit delete. This allows the browser to properly communicate the success token back to your code editor.

Experiencing generalized network blocks on your developer machine? Read our internal guide on How to Safely Bypass Corporate Firewalls for Developer Tools. You can also monitor GitHub’s backend status on the Official GitHub Status Page.

Related Search

  1. “signing in to github failed. could not reach github to verify the selected account.”
    Keyword Intent: Error Resolution. Explanation: This is the exact error thrown by Copilot and GitHub integrations when OAuth fails. Short Answer: The IDE cannot ping the authentication servers. Disable your VPN/proxy, clear the IDE cache, and ensure the IDE is fully updated.
  2. “Visual Studio sign-in fails adding GitHub account with error 738”
    Keyword Intent: Specific Platform Debugging. Explanation: Error 738 (ProtocolHandlerCallbackException) in Visual Studio. Short Answer: Repair your Visual Studio installation via the Installer to ensure the WebView2 Runtime and sign-in protocol handler components are correctly installed.
  3. “GitHub Copilot won’t open browser to login”
    Keyword Intent: UI Glitch Fixing. Explanation: The button is clicked, but nothing happens. Short Answer: Go into your IDE’s advanced settings and force it to use the “System Default Browser” rather than its internal browser rendering engine.
  4. “VS Code Copilot chat authentication failed”
    Keyword Intent: Extension Troubleshooting. Explanation: Copilot Chat is tightly bound to specific VS Code versions. Short Answer: If you are running an older version of VS Code, modern Copilot Chat OAuth will fail. Update the core VS Code application.
  5. “How to login to GitHub Copilot using CLI”
    Keyword Intent: Workaround Seeking. Explanation: Bypassing the broken GUI login. Short Answer: If the IDE login refuses to work, install the GitHub CLI and type gh auth login in your terminal. Your IDE will automatically detect the active CLI token.

TL;DR – Quick Fixes for GitHub Verification Errors

  • The error occurs because your IDE cannot open the browser or receive the OAuth authentication token back from GitHub.
  • First, try disabling any VPN or proxy that might block https://github.com/login/device.
  • In Visual Studio, delete the %LOCALAPPDATA%\.IdentityService cache folder to force a clean login state.
  • If the UI login fails entirely, use the terminal command gh auth login as a powerful fallback workaround.
Tags:
GitHub Login FailedVisual Studio Error
Last updated on August 17, 2026
Freddy John
Freddy John is a Tech Support Specialist with 8+ years of experience troubleshooting government digital services, authentication systems, and enterprise IT infrastructure. Passionate about making technology accessible and helping users resolve complex login issues quickly. 📧 contact@seminarsonly.com | | facebook.com/seminarsonly | twitter.com/seminarsonly | 🌐 seminarsonly.com
View All Posts

Post navigation

Previous Post
Is the BECU Website Down? How to Check Online Banking Status & Fix Login Issues
Next Post
How to Fix GitHub Copilot “Failed to Get Copilot Token. ParseFailed” Error

Recent Posts

  • Excessive Closing Force Detected (Error Code 4-1): Fix
  • Perchance Error 521: Why It Happens & Fast Fixes
  • SLB Email Distribution Error: What Happened & Fix
  • PUBG Connection Failed Error: 9 Fixes That Work (2026)
  • 503 Service Temporarily Unavailable Upwork Fix

Archives

  • September 2026
  • August 2026
  • July 2026
  • June 2026
  • May 2026
  • April 2026
  • March 2026
  • February 2026
  • January 2026
  • December 2025
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • July 204

Categories

  • activate
  • Australia
  • BF6
  • Calculator
  • Canada
  • Card
  • CBSE Notes
  • Error Fix
  • Finance
  • Games
  • India
  • Ireland
  • Italy
  • Kerala
  • Login
  • Lottery
  • Maintenance
  • Minecraft
  • news
  • Outage Tracker
  • promo code
  • Property
  • Quotes
  • Result
  • Review
  • Roblox
  • Scam
  • Scholarship
  • Science Fair
  • Server
  • Social Security
  • South Africa
  • Train Status
  • Trending
  • TV
  • UK
  • Uncategorized
  • USA
  • Whois
Copyright 2026 — Seminarsonly.com. All rights reserved.
  • Privacy & Cookie Policy
  • Terms of Service
  • Disclaimer
  • Contact Us
  • About
Scroll to Top