hermes - 💡(How to fix) Fix [Bug] Gateway keeps reconnecting Discord despite disabled config

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

ERROR hermes_plugins.discord_platform.adapter: [Discord] No bot token configured ERROR hermes_plugins.discord_platform.adapter: [Discord] No bot token configured The platform initialization logic appears to ignore the enabled: false flag and plugins.disabled list. The gateway always attempts to connect to all registered platform adapters regardless of their enabled state. The reconnection watcher then treats the connection failure as a transient error and keeps retrying.

Root Cause

The platform initialization logic appears to ignore the enabled: false flag and plugins.disabled list. The gateway always attempts to connect to all registered platform adapters regardless of their enabled state. The reconnection watcher then treats the connection failure as a transient error and keeps retrying.

Fix Action

Workaround

Manually kill the gateway process and restart after setting discord.enabled: false — but the issue persists across restarts.

Code Example

plugins:
  disabled:
    - platforms/discord

---

INFO gateway.run: Connecting to discord...
ERROR hermes_plugins.discord_platform.adapter: [Discord] No bot token configured
WARNING gateway.run: ✗ discord failed to connect
INFO gateway.run: Starting reconnection watcher for 1 failed platform(s): discord
INFO gateway.run: Reconnecting discord (attempt 2)...
ERROR hermes_plugins.discord_platform.adapter: [Discord] No bot token configured
INFO gateway.run: Reconnect discord failed, next retry in 60s
RAW_BUFFERClick to expand / collapse

Bug Description

Gateway continuously attempts to reconnect Discord platform even when it is explicitly disabled in config and listed in plugins.disabled. The reconnection watcher keeps retrying indefinitely with exponential backoff, spamming the logs with "No bot token configured" errors.

Steps to Reproduce

  1. Have Discord in plugins.disabled list:
plugins:
  disabled:
    - platforms/discord
  1. Set discord.enabled: false in config.yaml
  2. Start gateway: hermes gateway run
  3. Observe gateway log

Expected Behavior

Gateway should skip connecting to Discord entirely when disabled, without logging errors or starting reconnection watchers.

Actual Behavior

Gateway logs show:

INFO gateway.run: Connecting to discord...
ERROR hermes_plugins.discord_platform.adapter: [Discord] No bot token configured
WARNING gateway.run: ✗ discord failed to connect
INFO gateway.run: Starting reconnection watcher for 1 failed platform(s): discord
INFO gateway.run: Reconnecting discord (attempt 2)...
ERROR hermes_plugins.discord_platform.adapter: [Discord] No bot token configured
INFO gateway.run: Reconnect discord failed, next retry in 60s

The reconnection loop continues indefinitely with exponential backoff (60s, 120s, 240s...).

Environment

  • Hermes Agent v0.14.0 (2026.5.16)
  • Python: 3.11.15
  • OS: Linux (6.18.7-76061807-generic)
  • Config: discord.enabled = false, plugins.disabled includes platforms/discord

Root Cause Analysis

The platform initialization logic appears to ignore the enabled: false flag and plugins.disabled list. The gateway always attempts to connect to all registered platform adapters regardless of their enabled state. The reconnection watcher then treats the connection failure as a transient error and keeps retrying.

Workaround

Manually kill the gateway process and restart after setting discord.enabled: false — but the issue persists across restarts.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix [Bug] Gateway keeps reconnecting Discord despite disabled config