mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
dify email tool attachment error #617
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hharch on GitHub (Sep 4, 2025).
Self Checks
Dify version
1.7.2
Plugin version
0.0.7
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
send email with attachment
✔️ Error log
error log: Run failed: Failed to invoke tool EmailDemo: An error occurred in the plugin, please contact the author of langgenius/email/email for help, error type: UnsupportedProtocol, error details: Request URL is missing an 'http://' or 'https://' protocol.
@dosubot[bot] commented on GitHub (Sep 4, 2025):
Hi @hharch! I'm Dosu and I’m helping the dify-official-plugins team.
This error happens because the email plugin expects file URLs (for attachments) to include the protocol (http:// or https://), but your environment isn't providing them. To fix it, set the FILES_URL and CONSOLE_API_URL environment variables in your Docker .env file to a valid base URL with the protocol included (for example,
FILES_URL=http://host.docker.internal). After updating the .env file (usually found at/dify/docker/.env), restart your containers withdocker compose up -dfor the changes to take effect. This should resolve the "UnsupportedProtocol" error when sending emails with attachments [source 1] [source 2].This issue is common in self-hosted setups and is not related to your SMTP server configuration. The plugin and platform rely on these environment variables to construct valid URLs for file attachments [source 3].
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@hharch commented on GitHub (Sep 4, 2025):
Got it,3Q,solved