Skip to content

TLS handshake_failure to api.individual.githubcopilot.com (os error -2146893018) on filtered network #5546

Backlog

Description

@chirag127

Description

Copilot CLI cannot complete its startup/model-discovery request to api.individual.githubcopilot.com on a managed corporate network. The TLS handshake is rejected with a fatal handshake_failure alert (TLS alert 40), which Windows Schannel surfaces as SEC_E_ILLEGAL_MESSAGE (0x80090326) / os error -2146893018.

The same error is surfaced by Paseo (an ACP host that launches copilot --acp), but it originates from the CLI's own HTTP client.

Environment

  • OS: Windows 11 (x64)
  • Copilot CLI: 1.0.114
  • GitHub CLI: 2.105.0, authenticated (gh auth status OK)
  • Host app: Paseo 0.16.2 (only launches copilot --acp; not the cause)
  • Network: managed corporate network with DNS filtering and VPN

Exact error

error sending request for url (https://api.individual.githubcopilot.com/meta):
client error (Connect): The message received was unexpected or badly formatted.
(os error -2146893018)

CLI log (~/.copilot/logs/...): ACP request failed {"method":"session/new","error":"... os error -2146893018 (-32603)"}

Diagnostics performed

  1. Clock / proxy ruled out. System time is correct and NTP-synced. No HTTP_PROXY/HTTPS_PROXY/ALL_PROXY env vars; WinHTTP is set to direct access.
  2. DNS is filtered. System resolvers return 146.112.61.104 (a Cisco/OpenDNS interception address) for api.individual.githubcopilot.com. Public resolvers return the real chain: api.individual.githubcopilot.com → api.githubcopilot.com → glb-db52c2cf8be544.github.com → 140.82.112.x.
  3. Handshake fails even on the real IP. Pinning to the real GitHub address with curl --resolve api.individual.githubcopilot.com:443:140.82.114.22 still produces a fatal TLS alert:
    schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326)
    curl: (35) schannel: next InitializeSecurityContext failed ...
    
    Node.js (https.get) independently reports SSL alert number 40 — so this is not curl/Schannel-specific.
  4. Hostname-specific. Against the same IP, SNI api.githubcopilot.com completes TLS 1.3 successfully (cert CN=*.githubcopilot.com, verification OK) and /meta returns HTTP 400/404. github.com and api.github.com return HTTP 200.
  5. Proxy bypass does not help. Direct connection and connection through the local HTTP proxy both produce the identical TLS failure (proxy CONNECT succeeds, then TLS fails).
  6. Not an auth problem. gh auth status is valid and the CLI is signed in; failure occurs before any HTTP response.

Expected behavior

GET https://api.individual.githubcopilot.com/meta should complete TLS and return a response so the CLI can discover models.

Actual behavior

TLS handshake aborts with fatal alert 40 at Connect, so every copilot --acp session immediately errors.

Questions

  1. Is api.individual.githubcopilot.com still the correct endpoint for Individual plans, or has it moved to api.githubcopilot.com / a per-subscription endpoint?
  2. Is there a supported override for the API base URL that works with the existing CLI OAuth sign-in? (COPILOT_PROVIDER_BASE_URL appears intended for BYOK only — swapping in api.githubcopilot.com with the OAuth token returns 400 Authorization header is badly formatted.)
  3. Are there recommended settings for networks that filter or intercept this hostname?

Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage:needs-humanAuto-triage could not classify this issue confidently. Remove the label to re-queue it.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions