Skip to main content

OpenClaw: 502 Bad Gateway (openclaw-gateway)

Common message

502 Bad Gateway

Symptoms

  • Control UI shows Disconnected from gateway
  • pairing required / device identity required loops
  • origin not allowed errors in UI

Root cause

OpenClaw gateway/control UI connectivity

Fix

  1. Set gateway.controlUi.allowedOrigins to include the public host.
  2. Ensure pairing approval bootstrap is executed once (idempotent).
  3. Verify gateway service is reachable from the UI and websockets are allowed.