openclaw - 💡(How to fix) Fix [Bug]: [Feishu] 定时任务触发消息发送失败 - 卡片格式错误 & 目标缺失 [1 participants]

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…
GitHub stats
openclaw/openclaw#55009Fetched 2026-04-08 01:33:42
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
1
Author
Participants
Timeline (top)
labeled ×2

Feishu plugin fails to send messages when triggered by scheduled tasks (cron). Errors: "Failed to create card content (ErrCode: 200621)" and "Action send requires a target". Manual messages work fine, only scheduled reminders fail.

Error Message

Error logs from gateway: 15:05:32 [error] Failed to create card content

Root Cause

Feishu plugin fails to send messages when triggered by scheduled tasks (cron). Errors: "Failed to create card content (ErrCode: 200621)" and "Action send requires a target". Manual messages work fine, only scheduled reminders fail.

Code Example

Error logs from gateway:
15:05:32 [error] Failed to create card content
  ErrCode: 200621
  ErrMsg: parse card json err
  log_id: 20260326150532EFA30FA8662E4C2D7BF0
15:06:20 [tools] message failed: Action send requires a target.
15:05:06 [tools] message failed: Unknown target "feishu" for Feishu
  Hint: <chatId|user:openId|chat:chatId>
Manual messages work fine, only scheduled tasks fail.
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Summary

Feishu plugin fails to send messages when triggered by scheduled tasks (cron). Errors: "Failed to create card content (ErrCode: 200621)" and "Action send requires a target". Manual messages work fine, only scheduled reminders fail.

Steps to reproduce

  1. Configure Feishu plugin with WebSocket mode
  2. Create a scheduled task (e.g., daily stock check reminder)
  3. Wait for the scheduled task to trigger
  4. Check gateway logs for errors

Expected behavior

Scheduled tasks should successfully send messages to Feishu chat, just like manual messages do.

Actual behavior

Message sending fails with errors:

  • "Failed to create card content, ext=ErrCode: 200621; ErrMsg: parse card json err"
  • "Action send requires a target"
  • "Unknown target 'feishu' for Feishu" Gateway logs show multiple 400 errors during scheduled task execution.

OpenClaw version

2026.3.23-1

Operating system

Windows 10.0.19045

Install method

npm global

Model

qwen-portal/qwen3.5-plus

Provider / routing chain

qwen-portal -> qwen3.5-plus

Additional provider/model setup details

Feishu plugin: @openclaw/[email protected] Connection mode: WebSocket Config location: ~/.openclaw/openclaw.json → channels.feishu

Logs, screenshots, and evidence

Error logs from gateway:
15:05:32 [error] Failed to create card content
  ErrCode: 200621
  ErrMsg: parse card json err
  log_id: 20260326150532EFA30FA8662E4C2D7BF0
15:06:20 [tools] message failed: Action send requires a target.
15:05:06 [tools] message failed: Unknown target "feishu" for Feishu
  Hint: <chatId|user:openId|chat:chatId>
Manual messages work fine, only scheduled tasks fail.

Impact and severity

  • Affected: Feishu users with scheduled tasks/cron jobs
  • Severity: Medium (core functionality works, but scheduled reminders fail)
  • Frequency: Always (every time a scheduled task triggers)
  • Consequence: Scheduled reminders and notifications are not delivered

Additional information

日志.txt

extent analysis

Fix Plan

To resolve the issue of Feishu plugin failing to send messages when triggered by scheduled tasks, we need to modify the Feishu plugin configuration and the scheduled task setup.

Here are the steps:

  • Update the ~/.openclaw/openclaw.json file to include the target chat ID or user open ID for the Feishu plugin.
  • Modify the scheduled task to include the target chat ID or user open ID in the message payload.

Example code snippet for updating the openclaw.json file:

{
  "channels": {
    "feishu": {
      "target": "chatId|user:openId"
    }
  }
}

Example code snippet for modifying the scheduled task:

const message = {
  // ... other message properties ...
  target: 'chatId|user:openId'
};

Additionally, ensure that the Feishu plugin version is up-to-date, and the WebSocket connection is stable.

Verification

To verify that the fix worked, trigger the scheduled task and check the gateway logs for any errors. Also, check the Feishu chat for the received message.

Extra Tips

  • Refer to the Feishu troubleshooting docs for more information on error codes and troubleshooting steps: https://open.feishu.cn/search?from=openapi&code=200621
  • Ensure that the Feishu plugin configuration is correct and the target chat ID or user open ID is valid.
  • Test the Feishu plugin with manual messages to ensure that it is working correctly before testing with scheduled tasks.

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…

FAQ

Expected behavior

Scheduled tasks should successfully send messages to Feishu chat, just like manual messages do.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING