hermes - 💡(How to fix) Fix [Bug]: DingTalk: Cannot send image and files via gateway [2 pull requests]

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…

Error Message

  • Image sending silently fails — no error shown to user

Additional Logs / Traceback (optional)

Root Cause

Root Cause Analysis (optional)

Fix Action

Fixed

Code Example

Report       https://paste.rs/7J4bE
agent.log    https://paste.rs/lKjEj
gateway.log  https://paste.rs/bfus3

---
RAW_BUFFERClick to expand / collapse

Bug Description

Hermes Agent currently cannot reliably send image and files through the DingTalk platform. The gateway logs show Sending image: file:///path/to/image.png but the image never arrives in the user's chat. This affects both the send_message` tool.

Steps to Reproduce

  1. Run Hermes with DingTalk gateway (Stream Mode)
  2. Ask Hermes to generate or process an image
  3. Agent includes in reply text
  4. Gateway logs: [Dingtalk] Sending image: file:///path/to/image.png (alt=)
  5. User receives text but no image in DingTalk chat

Expected Behavior

Images should be delivered as native file attachments in DingTalk chat, similar to how text messages work.

Actual Behavior

  • Image sending silently fails — no error shown to user
  • Gateway logs the attempt but upload to DingTalk servers appears to fail
  • The send_message tool also fails without DINGTALK_WEBHOOK_URL configured
  • Even with webhook URL configured, image delivery is unreliable

Affected Component

Gateway (Telegram/Discord/Slack/WhatsApp)

Messaging Platform (if gateway-related)

No response

Debug Report

Report       https://paste.rs/7J4bE
agent.log    https://paste.rs/lKjEj
gateway.log  https://paste.rs/bfus3

Operating System

Ubuntu 24.04

Python Version

3.11.15

Hermes Version

v0.13.0

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

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

hermes - 💡(How to fix) Fix [Bug]: DingTalk: Cannot send image and files via gateway [2 pull requests]