#Message: send failed
1 messages · Page 1 of 1 (latest)
That gateway closed (1008): unauthorized: device token mismatch is Gateway device-auth, not Discord auth.
It means the client that’s connected to the Gateway WS (Control UI / CLI / macOS app / node) is presenting a saved device token that no longer matches what the Gateway has on disk (common after restoring ~/.openclaw, moving gateways, clearing/duplicating browser storage, or pairing against a different gateway URL).
Fix (re-pair / re-issue the device token):
- On the gateway host, grab basics:
openclaw --version
openclaw gateway status
openclaw devices list
-
Identify the device entry that matches the client you’re using (role is usually
operatorfor Control UI,nodefor phone/node). -
Revoke the token for that device+role (forces a clean re-pair):