Codespaces "Oh no, it looks like you are offline" and Other Connection Errors

Share
Ongoing Browser, VS Code Updated November 14, 2026How we research

Quick answer

Browser connection errors are usually an unstable network or a firewall blocking Codespaces domains. Clear storage and cookies, try another browser, and allow the domains from the GitHub meta API.

Most likely fix: Browser fixes

How to fix it

Try these in order — the most common fix is first.

  1. 1. Browser fixes

    1. Open github.com/codespaces and connect from there (you can only open codespaces you created)
    2. Try a different browser
    3. For "unable to authenticate", clear local storage and cookies
    4. For "trouble fetching", wait a few minutes and retry
    Did this fix it?
  2. 2. Network and firewall

    1. Run gh api meta --jq .domains.codespaces to list required domains and allow them
    2. Allow *.visualstudio.com on the firewall; exclude it from TLS inspection or install the firewall root CA
    Did this fix it?
  3. 3. VS Code extension

    1. Update the GitHub Codespaces extension
    2. Switch from VS Code Insiders to Stable
    Did this fix it?
  4. 4. Latency

    1. Set your Codespaces region manually in user preferences
    Did this fix it?

Symptoms

Messages such as "Oh no, it looks like you are offline", "We are having trouble fetching your codespace information", "We were unable to authenticate your connection", or the VS Code extension failing to connect (connect EACCES, ECONNREFUSED, getaddrinfo ENOTFOUND, "Tunnel service HTTPS certificate is invalid").

Why it happens

  • Unstable internet or a company network blocking connections
  • Firewall blocking *.visualstudio.com or Codespaces domains
  • TLS inspection injecting a self-signed certificate
  • Authentication failure with stale local storage or cookies
  • Codespace created in a region far from you (latency)

This guide also covers

  • codespaces oh no it looks like you are offline
  • codespaces unable to connect
  • codespaces tunnel service https certificate invalid
  • codespaces connection error

Still not working?

If GitHub Codespaces keeps failing, you're not alone. See every GitHub Codespaces problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

The same problem in other apps

All not loading, error messages & connection guides →

Other GitHub Codespaces errors

All 11 GitHub Codespaces errors and fixes →