Skip to content

[Bug]: [Windows] OAuth callback succeeds, but profile linking fails with bare "fetch failed" on Orca 1.4.183 #14865

Closed as duplicate

Description

@1Morganmore

Operating system

Windows

Orca version

1.4.183

Details

Summary

On Windows 11 x64, Orca repeatedly fails to connect a local profile to Orca Cloud.

The external browser login succeeds and reaches Orca's local callback page:

Signed in to Orca

However, Orca then shows:

Failed to connect profile

fetch failed

The local profile remains unlinked and Orca Relay is unavailable.

Environment

  • OS: Windows 11 x64
  • Orca version: 1.4.183
  • Installation method: Official Orca Updater
  • Terminal daemon version after reboot: 1.4.183
  • Network during reproduction: smartphone hotspot only
  • Wired Ethernet adapter: disabled
  • Tailscale: fully stopped
  • WinHTTP proxy: direct connection
  • HTTP(S)_PROXY environment variables: not configured

The same general Relay flow works on another Windows desktop. The exact Orca version and environment of
that desktop may differ.

Steps to reproduce

  1. Start Orca with a local profile.
  2. Open Settings → Orca Account.
  3. Click Sign in to Orca.
  4. Complete the browser-based sign-in.
  5. Allow the browser to redirect to Orca's local callback:
    http://127.0.0.1:<dynamic-port>/auth/callback
  6. The browser displays Signed in to Orca.
  7. Return to Orca.

Expected behavior

The OAuth code is exchanged for an Orca Cloud session, the local profile is linked, and Orca Relay
becomes available.

Actual behavior

Orca displays:

Failed to connect profile
fetch failed

The profile remains local-only. No Cloud session is saved, and Orca Relay remains unavailable.

This reproduces repeatedly.

Additional diagnostics

The following checks were performed from the same smartphone-hotspot network:

This indicates that DNS, TCP/TLS connectivity, and basic endpoint reachability are working. The failure
appears to occur during the actual post-callback session exchange.

The browser callback succeeds, but:

  • The local profile remains local.
  • No encrypted Cloud session artifact is created.
  • No profile linkage is persisted.
  • main.trace.ndjson does not contain a useful auth, fetch, TLS, DNS, or session-exchange error for the
    failed attempt.

Technical suspicion

The v1.4.183 Cloud client appears to use Node's global fetch for:

POST https://login.onorca.dev/v1/desktop/auth/session

The request uses redirect: 'error' and a 30-second timeout. A transport error, socket reset, TLS/proxy
failure, or refused redirect is surfaced to the UI only as:

TypeError: fetch failed

The underlying error.cause is not exposed or recorded, so the exact transport failure cannot be
identified.

This appears related to:

Requested fix

Please consider:

  1. Routing Cloud authentication requests through Electron's net.fetch or another transport that uses the
    OS proxy and certificate configuration.
  2. Preserving and reporting the nested transport error cause, including:
  • DNS error code
  • TCP/TLS error code
  • proxy source
  • socket error
  • redirect status
  • timeout
  1. Adding a regression test for:
  • successful browser callback followed by session exchange
  • valid-code connection close
  • refused redirect
  • TLS/DNS/socket transport failures

Activity

  1. added theissue type on Aug 16, 2026
  2. added
    bug
    on Aug 16, 2026
  3. bbingz commented on Aug 16, 2026

    @bbingz
    Contributor

    Verified against current main at fd1dba9db9: the Cloud session exchange still calls bare global fetch in profile-cloud-client.ts, and profile-cloud-service.ts reduces the thrown error to error.message, so the nested transport cause is lost exactly as reported. This is the same failure surface as #10758. The existing maintainer PR #10789 already moves both Cloud clients to Electron net.fetch, preserves/classifies transport causes, protects redirect and cookie behavior, and adds live-socket regression coverage; it is currently OPEN, CLEAN, MERGEABLE, with no failing or pending checks. A duplicate implementation is not needed; this report should remain linked to #10789 for the existing fix to land.

  4. OrcaWin commented on Aug 16, 2026

    @OrcaWin
    Collaborator

    Closing as a duplicate of #10758. Same Windows failure: the OAuth loopback callback succeeds, then profile linking dies with a bare fetch failed. #10758 is the older tracker; maintainer PR #10789 is the in-flight Electron net.fetch fix. This 1.4.183 report confirms it is still present on the latest release.

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

    bugos:Windows

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions