Bug Description
I'm using Hermes to connect to Feishu. When sending a Feishu card with a confirmation interactive button and clicking it, I get the error 出错了,请稍后重试code:200340 (Something went wrong, please try again later code:200340).
Key observations:
Feishu WebSocket connection is successful
Required permissions are granted
No card.action callback appears in Hermes logs
Response times out after ~537 seconds (far exceeding Feishu's 3-second requirement)
Steps to Reproduce
- Configure Hermes to connect to Feishu in WebSocket mode
- Send a Feishu card with a secondary confirmation button (using the official minimal compliant JSON)
- Click the confirmation button on the Feishu card
- Observe the error in Feishu and check Hermes logs
Expected Behavior
- Hermes receives a card.action callback from Feishu immediately after clicking the button
- Hermes returns an empty JSON {} within 3 seconds
- No error code 200340 appears in Feishu
Actual Behavior
- Feishu shows error code 200340
- No card.action callback log is found in Hermes
- Hermes response times out after ~537 seconds
Affected Component
Gateway (Telegram/Discord/Slack/WhatsApp)
Messaging Platform (if gateway-related)
No response
Operating System
rocky9.6
Python Version
3.11.13
Hermes Version
Hermes Agent v0.8.0 (2026.4.8) Project: /root/.hermes/hermes-agent Python: 3.11.15 OpenAI SDK: 2.31.0
Relevant Logs / Traceback
2026-04-13 10:48:53,606 WARNING gateway.platforms.feishu: [Feishu] Unable to hydrate bot identity from application info. Grant admin:app.info:readonly or application:application:self_manage so group @mention gating can resolve the bot name precisely.
2026-04-13 10:48:53,607 INFO gateway.platforms.feishu: [Feishu] Connected in websocket mode (feishu)
2026-04-13 10:48:53,607 INFO gateway.run: ✓ feishu connected
2026-04-13 10:48:53,609 INFO gateway.run: 1 hook(s) loaded
2026-04-13 10:48:53,610 INFO gateway.run: Gateway running with 2 platform(s)
2026-04-13 10:48:53,617 INFO gateway.run: Channel directory built: 0 target(s)
2026-04-13 10:48:53,618 INFO gateway.run: Press Ctrl+C to stop
2026-04-13 10:48:53,632 INFO gateway.run: Cron ticker started (interval=60s)
2026-04-13 10:48:53,975 INFO Lark: connected to wss://msg-frontier.feishu.cn/ws/v2?fpid=493&aid=552564&device_id=7628070328405543890&access_key=1a84845802d98cc77e513a1e9a12846c&service_id=33554678&ticket=3ccef94b-a27c-47c1-a40f-2c52f8ea448c [conn_id=7628070328405543890]
2026-04-13 10:49:40,073 INFO gateway.platforms.feishu: [Feishu] Received raw message type=text message_id=om_x100b52f1d2fb80a8c4e4334d81db271
2026-04-13 10:49:40,074 INFO gateway.platforms.feishu: [Feishu] Inbound dm message received: id=om_x100b52f1d2fb80a8c4e4334d81db271 type=text chat_id=oc_a2aa37345714268b46952da2aa0f4e59 text='请直接发送一个飞书卡片确认按钮测试,直接调试,我看下有没有问题,' media=0
2026-04-13 10:49:41,405 INFO gateway.platforms.feishu: [Feishu] Flushing text batch agent:main:feishu:dm:oc_a2aa37345714268b46952da2aa0f4e59 (32 chars)
2026-04-13 10:49:41,892 INFO gateway.run: inbound message: platform=feishu user=金建平 chat=oc_a2aa37345714268b46952da2aa0f4e59 msg='请直接发送一个飞书卡片确认按钮测试,直接调试,我看下有没有问题,'
2026-04-13 10:49:42,266 INFO run_agent: Loaded environment variables from /root/.hermes/.env
2026-04-13 10:56:57,834 INFO gateway.platforms.feishu: [Feishu] Inbound dm message received: id=om_x100b52f1f95c8480b4cdcdd2f4c3e2c type=text chat_id=oc_a2aa37345714268b46952da2aa0f4e59 text='这是飞书官方要求的、带二次确认按钮的最简卡片 JSON,确保无语法错误、格式完全合规,请使用这个调试,{\n"config": {\n"wide_screen_mode": true\n},\n"elements": [\n{\n"tag": "div' media=0
2026-04-13 10:56:58,435 INFO gateway.platforms.feishu: [Feishu] Flushing text batch agent:main:feishu:dm:oc_a2aa37345714268b46952da2aa0f4e59 (438 chars)
2026-04-13 10:56:59,385 INFO agent.auxiliary_client: Auxiliary auto-detect: using openrouter (google/gemini-3-flash-preview)
2026-04-13 10:56:59,395 INFO agent.auxiliary_client: Auxiliary compression: using auto (google/gemini-3-flash-preview)
2026-04-13 10:58:38,900 INFO agent.auxiliary_client: Auxiliary compression: using auto (google/gemini-3-flash-preview)
2026-04-13 10:58:38,912 INFO gateway.run: response ready: platform=feishu chat=oc_a2aa37345714268b46952da2aa0f4e59 time=537.0s api_calls=6 response=318 chars
2026-04-13 10:58:38,934 INFO gateway.platforms.base: [Feishu] Sending response (318 chars) to oc_a2aa37345714268b46952da2aa0f4e59
Root Cause Analysis (optional)
No response
Proposed Fix (optional)
No response
Are you willing to submit a PR for this?
Bug Description
I'm using Hermes to connect to Feishu. When sending a Feishu card with a confirmation interactive button and clicking it, I get the error 出错了,请稍后重试code:200340 (Something went wrong, please try again later code:200340).
Key observations:
Steps to Reproduce
Expected Behavior
Actual Behavior
Affected Component
Gateway (Telegram/Discord/Slack/WhatsApp)
Messaging Platform (if gateway-related)
No response
Operating System
rocky9.6
Python Version
3.11.13
Hermes Version
Hermes Agent v0.8.0 (2026.4.8) Project: /root/.hermes/hermes-agent Python: 3.11.15 OpenAI SDK: 2.31.0
Relevant Logs / Traceback
Root Cause Analysis (optional)
No response
Proposed Fix (optional)
No response
Are you willing to submit a PR for this?