Repository navigation
Open
Labels
Description
Operating system
Windows
Orca version
v1.4.199
Details
Summary
On a corporate network that requires all outbound HTTPS/WSS to go through an HTTP proxy (direct connections are blocked/dropped), two related features fail even though the app's own Settings → Network → HTTP Proxy is correctly configured with the working proxy and an appropriate bypass list:
- "Pair this PC" / Cloud sign-in: after successfully signing in via the browser (which does honor the OS/browser proxy) and being redirected to
http://127.0.0.1:<port>/auth/callback?code=..., the desktop app shows a toast "Failed to connect profile — fetch failed". - Mobile pairing via Orca Relay (QR code): fails with
Couldn't create a Relay pairing code, backed by:{ "kind": "mobile_pairing_relay_failure", "preferredConnectionMode": "automatic", "failure": { "code": "relay_control_not_active", "stage": "create_pairing_relay", "message": "Relay pairing invite request failed" } }
Root cause (confirmed by extracting app.asar and reproducing outside the app)
- The Cloud auth code exchange (
connectCurrentOrcaProfile→ IPCorcaProfiles:connectCurrent→ main-processIci()→rsi()→_0()) callsPOST https://login.onorca.dev/v1/desktop/auth/sessionusing Node's built-infetch(undici) directly in the Electron main process. - This
fetch()call does not use the OS proxy, nor the proxy configured in Orca's own Settings (that setting only appears to apply to Chromium/renderer network stack). On a network where direct outbound HTTPS is blocked, the call hangs and fails with:FETCH ERROR: fetch failed CAUSE: ConnectTimeoutError: Connect Timeout Error (attempted address: login.onorca.dev:443, timeout: 10000ms) code: 'UND_ERR_CONNECT_TIMEOUT' - Reproduced outside Electron with plain Node (
node -e 'fetch("https://login.onorca.dev/v1/desktop/auth/session", ...)'): fails the same way unlessHTTPS_PROXY/HTTP_PROXYenv vars are set andNODE_USE_ENV_PROXY=1is set (Node 24+ opt-in for undici to respect proxy env vars). With those set, the request correctly reaches the server (gets a real400 invalid_requestresponse instead of timing out). - The Relay pairing control channel (
relay_control_not_activethrown fromoriginPool.activeControlbeing null in the relay-host code path, connecting torelayDirectorUrl=https://relay.onorca.devby default) appears to have the same class of problem — it also runs in the main process and does not appear to route through the configured HTTP proxy. SettingNODE_USE_ENV_PROXY=1(which only affectsfetch/undici) did not fix this second failure, consistent with the Relay control channel using a different networking path (likely a raw WebSocket) that has no proxy support at all.
Suggested fix
- Apply the app-configured HTTP proxy (
Settings → Network → HTTP Proxy+ bypass rules) to all main-process outbound network calls, not just the ones going through Chromium'snetmodule — specifically:- The Cloud auth endpoints (
login.onorca.dev:/v1/desktop/auth/*) - The Relay director/control WebSocket connection (
relay.onorca.dev)
- The Cloud auth endpoints (
- Alternatively/additionally, respect standard
HTTP_PROXY/HTTPS_PROXY/NO_PROXYenvironment variables for both the undici-basedfetchcalls and any WebSocket connections used for Relay pairing.
Environment
- Orca version: 1.4.199 (Windows)
- OS: Windows 11 Pro 10.0.22631
- Network: corporate network behind a Fortinet SSL-inspecting proxy (
proxy2.fujinet.vn:8080), direct (non-proxied) outbound HTTPS/WSS to the internet is blocked - Workaround found: "Use LAN" pairing (local network/Tailscale) works fine, since it doesn't require the Relay control channel to the internet.
Diagnostics
{
"kind": "mobile_pairing_relay_failure",
"preferredConnectionMode": "automatic",
"failure": {
"code": "relay_control_not_active",
"stage": "create_pairing_relay",
"message": "Relay pairing invite request failed"
},
"at": "2026-09-11T03:18:33.572Z"
}
Activity
DaveDev42 commentedon Oct 26, 2026
Same thing on macOS (1.4.241). Our company network blocks direct traffic to
login.onorca.devandrelay.onorca.dev, and the only way out is a SOCKS5 tunnel on127.0.0.1:1080.What works for us today, as a local patch to
app.asar:fetchcalls: start Orca withNODE_USE_ENV_PROXY=1andHTTPS_PROXY=socks5://127.0.0.1:1080(plusNODE_USE_SYSTEM_CA=1for the TLS on that path).agent: new SocksProxyAgent('socks5h://127.0.0.1:1080')to the twowsconstructors, inmobile-cloud-relay/relay-control-client.tsandrpc/relay-transport.ts.wsignores the proxy env vars, so env alone doesn't fix this part, same as you found.We can't use Settings > Network > HTTP Proxy for this, since it also routes the embedded browser, and our browser has to reach internal sites directly. So whatever the fix ends up being, it would help if the relay could use a proxy without the browser using it too. Either a separate relay proxy setting, or the main process honoring
HTTPS_PROXY/ALL_PROXY(SOCKS included) for bothfetchand the relay sockets, would cover our case.I can send a PR for either one if you tell me which you'd prefer.