mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Error message when using minerU tool #463
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 @tianshiqingge on GitHub (Jul 21, 2025).
Self Checks
Dify version
1.6.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
The minerU tool reported an error when adding the AIP key, but adding the same API key to another DIFY server is not a problem. What is the problem?
✔️ Expected Behavior
The minerU tool reported an error when adding the AIP key
❌ Actual Behavior
No response
@dosubot[bot] commented on GitHub (Jul 21, 2025):
The error you're seeing (ToolProviderCredentialValidationError) usually means there's a mismatch or missing field in the credentials for the minerU tool. Even if the API key is correct, the credential schema (fields like
auth_type,api_key_value, or header/query param names) must match exactly between your Dify servers. Recent changes in Dify now support both header and query parameter authentication, with defaults set toAuthorizationfor headers andkeyfor query params—if your Docker.envor tool config differs between servers, this can cause validation to fail even with the same key [source].Check these on both servers:
auth_typeandapi_key_value) matches exactly..envfile and Docker configs use the same service URLs (localhostvs127.0.0.1can matter after recent updates) [source].If you still get the error, compare the full credential JSON/schema for minerU on both servers—any drift will cause this error. Let me know if you want a step-by-step checklist for comparing configs.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@tianshiqingge commented on GitHub (Jul 21, 2025):
@dosu Please tell me what to do
@lichangfeng-1 commented on GitHub (Jul 22, 2025):
Plugin Name
mineu2
Function Description
现有的插件存在api对接失败的问题
我是本地部署的 dify 和 minerU2,
dify的现有的0.2 版本 minerU插件信息:
PARSE FILE:
输入:
{
"file": {
"dify_model_identity": "dify__file",
"id": null,
"tenant_id": "739f5fff-6xxxxxxxxxxxxxx42",
"type": "document",
"transfer_method": "local_file",
"remote_url": "xxxxx",[这个地址可以在局域网打开,是 一个我上传的pdf文件]
"filename": "3.行业应用篇-DeepSeek入门宝典.pdf",
"extension": ".pdf",
"mime_type": "application/pdf",
"size": 1325796,
"url": "xxxxxx"
}
}
输出:
{
"text": "Failed to parse file. result: {"detail":[{"type":"missing","loc":["body","files"],"msg":"Field required","input":null}]}",
"files": [],
"json": [
{
"data": []
}
]
}
minerU2 后台日志:
INFO:"POST /file_parse?parse_method=auto&return_layout=False&return_info=False&return_content_list=True&return_images=True HTTP/1.1" 422 Unprocessable Entity
Image
Official Website URL
https://github.com/opendatalab/mineru
@dosubot[bot] commented on GitHub (Aug 20, 2025):
Hi, @tianshiqingge. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
auth_typeor API key field names.Next Steps:
Thank you for your understanding and contribution!