-
-
Notifications
You must be signed in to change notification settings - Fork 69.5k
Gateway token mismatch unauthorized error even when auth/remote tokens match #27246
Copy link
Copy link
Closed
Closed
Copy link
Description
I’m seeing repeated unauthorized errors when running local cron commands (for example openclaw cron list --json), even after setting matching tokens in config.
Observed error
unauthorized: gateway token mismatch- Message suggests setting
gateway.remote.tokento matchgateway.auth.token
Config state
In ~/.openclaw/openclaw.json, both values are identical:
gateway.auth.token = "4426"gateway.remote.token = "4426"
Despite this, runtime still intermittently behaves as if an old token is in use.
Repro steps
- Configure gateway token auth.
- Ensure
gateway.auth.tokenandgateway.remote.tokenare the same. - Run
openclaw cron list --json. - Receive unauthorized token mismatch.
Expected
Local loopback gateway should accept cron command when tokens match in config.
Actual
Unauthorized token mismatch can persist until repeated restart/reconfigure cycles.
Notes
This looks like a config/runtime token desync (possibly stale process/session state after token changes).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.