Repository navigation
Description
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
- Start Orca with a local profile.
- Open
Settings → Orca Account. - Click
Sign in to Orca. - Complete the browser-based sign-in.
- Allow the browser to redirect to Orca's local callback:
http://127.0.0.1:<dynamic-port>/auth/callback - The browser displays
Signed in to Orca. - 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:
- https://login.onorca.dev/health returns HTTP 200.
- https://relay.onorca.dev/health returns HTTP 200.
- A malformed POST to /v1/desktop/auth/session returns a structured HTTP 400 response.
- A syntactically valid request with an intentionally invalid authorization code returns HTTP 401
invalid_code.
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:
- [Bug]: Windows Google OAuth callback succeeds but cloud session exchange fails with TypeError: fetch failed #10758
- fix(orca-cloud): report the real cause when cloud sign-in cannot reach the network #10789
Requested fix
Please consider:
- Routing Cloud authentication requests through Electron's net.fetch or another transport that uses the
OS proxy and certificate configuration. - Preserving and reporting the nested transport error cause, including:
- DNS error code
- TCP/TLS error code
- proxy source
- socket error
- redirect status
- timeout
- Adding a regression test for:
- successful browser callback followed by session exchange
- valid-code connection close
- refused redirect
- TLS/DNS/socket transport failures
Activity
bbingz commentedon Aug 16, 2026
Verified against current
mainatfd1dba9db9: the Cloud session exchange still calls bare globalfetchinprofile-cloud-client.ts, andprofile-cloud-service.tsreduces the thrown error toerror.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 Electronnet.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.OrcaWin commentedon Aug 16, 2026
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 Electronnet.fetchfix. This 1.4.183 report confirms it is still present on the latest release.