LLM node File validation failed for file, occurs when uploading a file again in the same session window.
Self Checks
- [x] I have read the Contributing Guide and Language Policy.
- [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report, otherwise it will be closed.
- [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
- [x] Please do not modify this template :) and fill in all the required fields.
Dify version
1.9.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
When I upload a file again in the same session window, it gives an error: "File validation failed for file: xxx.csv". When I turn off the Memory switch of the LLM node, it works normally without any errors, but I really need to have the Memory switch on. This problem did not occur at the beginning; it only appeared after using it for a while. How can I avoid or solve this problem? Thank you.
Service Log:
✔️ Expected Behavior
I hope to be able to have multiple sessions in the same session window, uploading different data files respectively according to different user processing needs.
❌ Actual Behavior
When I upload a file again in the same session window, it gives an error: "File validation failed for file: xxx.csv".
In the 1.10.0-rc1 version, I encountered the same issue.
The presence of a file in the message history causes all subsequent file uploads and message transmissions to fail. Error: Run failed: Failed to transform agent message: req_id: c94de33c31 PluginInvokeError: {"args":{},"error_type":"Exception","message":"read llm model failed: request failed: req_id: 857aa0cd9f PluginInvokeError: {"args":{"description":"[models] Error: 'dict' object has no attribute 'dashscope_api_key'"},"error_type":"InvokeError","message":"[models] Error: 'dict' object has no attribute 'dashscope_api_key'"}"}
yes, i have the same problem, version 1.10.0 ;
如果我关闭 llm 节点的 记忆功能, 就不会有问题, 开启记忆第二次上传图片(我这里是url图片地址), 100%报错; If I disable the memory function of the LLM node, there will be no problems. However, when I enable the memory function and try to upload an image again (the image URL is provided here), 100% of the attempts result in errors.