solution gateway high macos linux windows

Gateway: reverse proxy 502 / HTTP/0.9 after update (TLS auto-generate enabled)

Fix reverse proxy breakage after an update enables gateway TLS: disable gateway TLS or update your proxy to talk HTTPS to the gateway.

By CoClaw Team •

Symptoms

  • After upgrading OpenClaw, your reverse proxy (Caddy/nginx/Traefik) starts returning 502 for Gateway endpoints (for example /hooks/wake).
  • Hitting the gateway port over HTTP locally fails, often with:
    • curl: (1) Received HTTP/0.9 when not allowed
  • But HTTPS works (for example curl -k https://127.0.0.1:18789/...).

Cause

The gateway is now speaking HTTPS on its port (TLS enabled / auto-generated certs), but your reverse proxy is still forwarding plain HTTP to that backend.

Fix

Pick one approach:

Disable gateway TLS and restart:

openclaw config set gateway.tls.enabled false --json
openclaw gateway restart

Option B: make your reverse proxy talk HTTPS to the gateway

If you want the proxy->gateway hop to be TLS, update your proxy upstream to https://127.0.0.1:<port> and (if using auto-generated certs) disable upstream cert verification or trust the gateway cert.

Verify

From the gateway host:

curl -i http://127.0.0.1:18789/healthz

You should get a normal HTTP response (not an HTTP/0.9/TLS handshake error).

Then re-test your proxy URL (webhook/hook endpoints) and confirm 502s are gone.

  • GitHub: #21814
  • OpenClaw config reference: gateway.tls.*

Verification & references

  • Reviewed by:CoClaw Code Team
  • Last reviewed:March 14, 2026
  • Verified on: macOS · Linux · Windows
Want to explore more? Browse all solutions or ask in the Community Forum .
Report a problem

Related Resources