-
-
Notifications
You must be signed in to change notification settings - Fork 69k
Feishu/Lark: audio resource download uses unsupported type=audio (should use type=file) #8746
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingstaleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Bug: Feishu/Lark audio resource download uses unsupported type=audio (should be type=file)
Summary
When receiving Feishu audio messages, the gateway attempts to download the resource using:
GET /im/v1/messages/:message_id/resources/:file_key?type=audio
This returns HTTP 400.
Per Feishu official docs, the type query parameter only supports image or file, and audio/video should be fetched using type=file.
Environment
- Channel: Feishu/Lark
- Package: openclaw-cn 2026.2.3 (Homebrew install) (but the same Feishu channel code appears to be vendored from upstream)
Steps to reproduce
- Send a voice message to the bot in Feishu.
- Observe the media download request.
Actual behavior
Audio download fails (HTTP 400).
Expected behavior
Audio resource should be downloaded successfully.
Reference
type=image: imagestype=file: files, audio, video (except stickers)
Suggested fix
For message_type === "audio", call messageResource.get with type="file".
Optionally keep downstream metadata/placeholder as <media:audio>.
Code pointers
feishu/downloadaudio branch currently passestype="audio"to the resource endpoint.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingstaleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Give feedbackNo fields configured for issues without a type.