HSX_E_CLOUDFLARE_OAUTH_REFRESH

OAuth refresh failed.

What this error means

Cloudflare rejected the refresh-token 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_REFRESH — stable to match on in scripts and agents.

Likely causes

  • Refresh token revoked
  • Scopes changed since last connect

How to fix it

  • Re-run hs-x connect cloudflare --auth-method oauth to re-authorize

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.