Files
electric-cherry/src/routes/servers/[name]
joshandClaude Opus 4.7 08de5a4064 Unwrap fetch errors + show URL in Komodo probe result
The probe surfaced "unreachable: This operation was aborted" — technically
correct (an AbortController fired the fetch timeout) but useless for
diagnosing whether it's a wrong URL, blocked route, or firewall. Node's
fetch also hides real network causes (ECONNREFUSED, ENOTFOUND,
EHOSTUNREACH) under `.cause`, and the default message just says
"fetch failed".

describeFetchError() now unwraps AbortError to "timed out after 10000ms
dialing <url>" and pulls `.cause.code/.cause.message` for network
failures. KomodoPortResult gains a `url` field, always populated, so the
probe panel can surface the exact URL we dialed in a code block —
operators can then `curl` it from the container to confirm reachability.

komodoRestart benefits from the same unwrapping since it uses the same
komodoCall() transport.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-09-12 09:28:15 -04:00
..