openclaw - 💡(How to fix) Fix Feishu: message tool fails with xlsx files (400 Invalid request param) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

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#84026Fetched 2026-05-20 03:45:04
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
1
Timeline (top)
labeled ×4commented ×1

Error Message

Response: {"code":234001,"msg":"Invalid request param.","error":{"log_id":"...","troubleshooter":"..."}}

Code Example

Status: 400
Response: {"code":234001,"msg":"Invalid request param.","error":{"log_id":"...","troubleshooter":"..."}}
RAW_BUFFERClick to expand / collapse

版本

OpenClaw 2026.5.18

问题描述

飞书(Feishu)频道使用 message 工具发送 xlsx 文件时,API 返回 400 错误(code: 234001, msg: "Invalid request param"),导致文件发送失败。

其他文件类型(如图片、文本)发送正常,只有 xlsx 文件有问题。

复现步骤

  1. 在 Feishu 频道对话
  2. 使用 message 工具的 attachments 参数发送 .xlsx 文件
  3. 工具报错:⚠️ Something went wrong while processing your request

技术分析

尝试直接调用飞书 API 时发现:

  • 文件上传到 /im/v1/files 时,file_type 字段需要设置为 xlsx(不能是 application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
  • 然后发送消息时使用 msg_type: file + file_key

但 OpenClaw message 工具内部调用时没有正确设置这个参数,导致 400 错误。

错误日志

Status: 400
Response: {"code":234001,"msg":"Invalid request param.","error":{"log_id":"...","troubleshooter":"..."}}

环境

  • OpenClaw: 2026.5.18
  • Node: v22.22.2
  • OS: Linux 6.8.0
  • Channel: Feishu

临时解决方案

手动通过飞书 API 两步走:

  1. POST /im/v1/files with file_type=xlsx → 获取 file_key
  2. POST /im/v1/messages with msg_type=file + content=file_key → 发送成功

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

openclaw - 💡(How to fix) Fix Feishu: message tool fails with xlsx files (400 Invalid request param) [1 comments, 2 participants]