You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
audit -f json: unreachable start URL exits 1 with no report; write a status=unreachable report instead #1269
squirrel audit <url> -f json -o out.json exits 1 and writes no file when the start URL can't be reached: DNS failure (getaddrinfo ENOTFOUND), connection timeout, ECONNRESET, or a TLS hostname mismatch (ERR_TLS_CERT_ALTNAME_INVALID). The only signal is a ✗ Cannot reach <url> ... line on stderr.
A batch caller then can't tell "the site is down" from "the CLI crashed" without scraping stderr. A blocked site, by contrast, already gets a JSON report with status: "blocked" and a reason code.
Seen in a 656-site batch run on v0.0.140 (linux-x64, --offline --passive, concurrency 8): 11 of 13 "exit 1, no report" outcomes were unreachable sites. The remaining 2 were a site that throttled the crawl early; re-run alone, the same URL completed (exit 0).
Acceptance Criteria
With -f json -o <file>, an unreachable start URL (DNS failure, connect timeout, connection reset, TLS error) writes a JSON report with status: "unreachable", a statusReasonCode that names the class (e.g. dns, timeout, connection_reset, tls), and the underlying error text in statusReason.
The exit code for an unreachable site is distinct from a crash, and documented on the CLI exit-codes docs page (as blocked is).
A test covers each class: DNS, timeout, reset and TLS.
Docs are updated in the same PR.
Every report with status: "blocked" exits 3, whether or not a WAF vendor is identified (a bare 403/429 "Request blocked by server" today exits 1). The exit-code table says so.
A related case from the same corpus run (v0.0.141, cloud renders with --render-mode all): a report with status: "blocked" exits 1 when the block isn't attributed to a known vendor (statusReason: "...: Request blocked by server", a bare 403/429). It exits 3 when the WAF is recognised (blocked_by_cloudflare, blocked_by_datadome). Of 18 cloud-blocked sites, 10 exited 1 and 8 exited 3.
The docs table says this is intended (1 = "down/blocked site"), but a batch caller then can't tell an unattributed block from a crash by exit code. Suggested addition to this issue's exit-code mapping: exit codes follow the report's status (blocked → 3, with wafBlocked.providers empty or unknown when no vendor is identified, and unreachable → its own code), so the code and the JSON never disagree.
Every report with status: "blocked" exits 3, whether or not a vendor is identified; the docs table says so.
Activity
nc9 commentedon Oct 29, 2026
A related case from the same corpus run (v0.0.141, cloud renders with
--render-mode all): a report withstatus: "blocked"exits 1 when the block isn't attributed to a known vendor (statusReason: "...: Request blocked by server", a bare 403/429). It exits 3 when the WAF is recognised (blocked_by_cloudflare,blocked_by_datadome). Of 18 cloud-blocked sites, 10 exited 1 and 8 exited 3.The docs table says this is intended (1 = "down/blocked site"), but a batch caller then can't tell an unattributed block from a crash by exit code. Suggested addition to this issue's exit-code mapping: exit codes follow the report's
status(blocked→ 3, withwafBlocked.providersempty orunknownwhen no vendor is identified, andunreachable→ its own code), so the code and the JSON never disagree.status: "blocked"exits 3, whether or not a vendor is identified; the docs table says so.fix(cli): unreachable follow-ups: tls wording, exit 5 test, effective…
fix(cli): offline level snapshot reports what ran; unreachable start …
fix(cli): unreachable follow-ups: tls wording, exit 5 test, effective…
nc9 commentedon Oct 30, 2026
Fixed in v0.0.142 (a8acade5), via the stacked release PR #1331.
fix(cli): analyze runs offline, security/http-to-https reports not-ch…
fix(cli): analyze runs offline, security/http-to-https reports not-ch…
fix(cli): analyze runs offline, security/http-to-https reports not-ch…