HSX_E_API_NETWORK

Network error.

What this error means

Request failed before reaching the upstream API.

When this error stops a command, hs-x exits with code 40. With --json, the failure is reported as a structured error whose code field is HSX_E_API_NETWORK — stable to match on in scripts and agents.

Likely causes

  • DNS failure
  • Proxy misconfigured
  • TLS handshake failed
  • Wrong --base-url

How to fix it

  • Check connectivity
  • Verify your base URL
  • Check any HTTPS proxy env vars

Still stuck? Re-run the command with --debug for the wire-level detail, or hs-x doctor to check accounts, link state, and connectivity in one pass.