Gateway Issues
Hermes Agent connects to Telegram, Discord, WeChat, Feishu, and other platforms through message gateways. When the Bot fails to respond or has connection issues, this page helps you quickly locate and resolve the problem.
Bot Not Responding to Messages
Section titled “Bot Not Responding to Messages”Symptom: User sends message but Bot doesn’t reply.
Troubleshooting Steps:
# 1. Confirm Hermes Agent main process is runningps aux | grep hermes # Linux / macOS# Ordocker ps # Docker deployment
# 2. Check logs for error messageshermes logs --tail 50# Docker:docker logs hermes-agent --tail 50
# 3. Confirm gateway configuration is correcthermes doctor
# 4. Test if LLM connection is workinghermes chat -q "hello"Common Causes and Fixes
Section titled “Common Causes and Fixes”| Cause | Fix |
|---|---|
| Main process not started | hermes chat --platform telegram |
| API Key invalid | hermes model to reconfigure |
| Bot Token error | Check Token in gateway config |
| Network unreachable | Check proxy settings and firewall |
Connection Drops or Frequent Disconnections
Section titled “Connection Drops or Frequent Disconnections”Symptom: Bot stops responding after running for a while, logs show connection dropped.
Solutions:
# 1. Check network stabilityping api.telegram.orgping gateway.discord.gg
# 2. Enable auto-reconnectgateway: reconnect: enabled: true max_retries: 10 retry_interval: 30 # seconds# 3. Use systemd or Docker auto-restart# systemd:[Service]Restart=alwaysRestartSec=10
# Docker:docker compose up -d # restart: unless-stoppedTelegram Bot Issues
Section titled “Telegram Bot Issues”Bot Token Invalid
Section titled “Bot Token Invalid”# Verify Token is validcurl https://api.telegram.org/bot<YOUR_TOKEN>/getMe
# Returns {"ok":true,...} means Token is valid# Returns {"ok":false,"error_code":401} means Token is invalidWebhook vs Long Polling
Section titled “Webhook vs Long Polling”# If using Webhook mode, ensure:# 1. Server has publicly accessible HTTPS address# 2. SSL certificate is valid# 3. Firewall allows the corresponding port
# Recommended: Use Long Polling mode (no public address needed):gateway: telegram: mode: polling # Use Long PollingAccessing Telegram from China
Section titled “Accessing Telegram from China”# Telegram API requires proxy in mainland Chinaexport HTTPS_PROXY=http://127.0.0.1:7890
# Or specify proxy in config filegateway: telegram: proxy: http://127.0.0.1:7890Discord Bot Issues
Section titled “Discord Bot Issues”Bot Permission Insufficient
Section titled “Bot Permission Insufficient”Ensure the Bot has necessary permissions in Discord Developer Portal:
- Send Messages — Send messages
- Read Message History — Read message history
- Add Reactions — Add emoji reactions
- Attach Files — Send files
Bot Offline
Section titled “Bot Offline”# 1. Confirm gateway is startedhermes chat --platform discord
# 2. Check Discord Bot Token is correct# 3. Confirm Bot has been invited to target server# 4. Check Intents are enabledEnable Message Content Intent in Discord Developer Portal, otherwise the Bot cannot read message content.
WeChat Integration Issues
Section titled “WeChat Integration Issues”QR Code Login Failure
Section titled “QR Code Login Failure”# WeChat connects via wechaty protocol, need to confirm:# 1. wechaty service is running# 2. Using supported puppet (like wechat4u, padlocal)# 3. Retry if QR code times outMessage Delay
Section titled “Message Delay”WeChat protocol limitations may cause message delays, which is normal. If delay exceeds 30 seconds:
# 1. Check wechaty service status# 2. Restart wechaty service# 3. Consider using WeCom (more stable)Feishu Integration Issues
Section titled “Feishu Integration Issues”App Review Not Approved
Section titled “App Review Not Approved”Ensure Feishu app has passed review and obtained these permissions:
im:message— Send messagesim:message.receive_v1— Receive messagesim:resource— Resource management
Event Callback Configuration Error
Section titled “Event Callback Configuration Error”# Confirm Feishu app callback address is configured correctlygateway: feishu: app_id: cli_xxxxx app_secret: xxxxx verification_token: xxxxx encrypt_key: xxxxxUser Authorization Issues
Section titled “User Authorization Issues”Symptom: Non-admin users cannot interact with Bot, or access is denied.
Cause: Hermes Agent user authorization mechanism not configured correctly.
Solutions:
gateway: auth: mode: allowlist # allowlist or open allowed_users: - user_id_1 - user_id_2 admin_users: - admin_id # Admins have all permissions# View current authorization confighermes config show | grep -A 10 auth
# Use open mode (anyone can use, use with caution!)# gateway.auth.mode: openMultiple Gateways Running Simultaneously
Section titled “Multiple Gateways Running Simultaneously”Hermes Agent supports connecting to multiple messaging platforms simultaneously:
# Start Telegram and Discord at the same timehermes chat --platform telegram --platform discord
# Or enable multiple gateways in config filegateway: platforms: - telegram - discord - feishuLogging and Debugging
Section titled “Logging and Debugging”# View detailed logshermes logs --level debug --tail 100
# Docker environmentdocker logs hermes-agent --tail 100 -f
# Export logs to filehermes logs --export hermes-debug.log
# Enable debug modehermes chat --platform telegram --debugRelated Pages
Section titled “Related Pages”- Common Errors — Common runtime errors
- Model Issues — LLM connection issues
- Security Best Practices — Security hardening guide
- VPS Deployment — Production environment deployment