mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
MinerU tool plugin error when upload from local file #142
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 @xiayucai on GitHub (Mar 28, 2025).
Self Checks
Dify version
1.1.3
Plugin version
mineru 0.0.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Error log
Failed to transform tool message: PluginInvokeError: {"args":{},"error_type":"UnsupportedProtocol","message":"Request URL is missing an 'http://' or 'https://' protocol."}
@samandqq commented on GitHub (Mar 30, 2025):
我也遇到了同样的问题,从本地上传的文件会报这个错误
@samandqq commented on GitHub (Mar 31, 2025):
解决了,是配置缺失引起的,dify .env文件中需要配置FILES_URL参数,配置后就不会报这个错误了:
File preview or download Url prefix.
used to display File preview or download Url to the front-end or as Multi-model inputs;
Url is signed and has expiration time.
FILES_URL=http://192.168.0.24 这里假如是docker compose启动的,可以直接配置宿主机的IP。 修改后docker-compose down, docker-compose up -d就可以了,因为默认是空,导致preview URL 没有协议关键字导致的