HSX_E_CLOUDFLARE_OAUTH_EXCHANGE

OAuth token exchange failed.

What this error means

Cloudflare rejected the authorization code exchange.

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

Likely causes

  • Code already used or expired
  • PKCE verifier mismatch
  • Client misconfigured

How to fix it

  • Re-run hs-x connect cloudflare --auth-method oauth

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.