You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
Please do not modify this template :) and fill in all the required fields.
Dify version
0.11.1
Cloud or Self Hosted
Cloud
Steps to reproduce
I want to use the list operation module to extract the URL of the file file, including the dify cloud and local deployment operations, and the workflow shows that it can be completed. As shown below:
However, on the dify cloud, the output is null, and in the local deployment, the output is path, but it does not contain parameters and cannot be used. As shown below:
The url can be output in the first or last data obtained by list_operator. After reference, url is not a field of File model, but a field processed by self.generate_url(). However, the code uses the direct output of remote_url, which is often an incomplete field or null, so it is more reasonable to replace it with a field generated by generate_url()
✔️ Expected Behavior
image_url,As shown below:
❌ Actual Behavior
"url": null
The text was updated successfully, but these errors were encountered:
I found a similar discussion regarding file URL issues in Dify, specifically about the file URL not matching the file location in S3 for a self-hosted instance. You can check it out here[1].
Regarding your issue, it seems that the list_operator module is directly using the remote_url attribute, which can be null or incomplete. Instead, it would be more appropriate to use the generate_url() function from the File model. This function generates a complete and usable URL based on the file's attributes and transfer method [2].
To resolve this, you might need to modify the code to use generate_url() instead of directly accessing remote_url. This change should ensure that the URLs are correctly generated and not null.
Self Checks
Dify version
0.11.1
Cloud or Self Hosted
Cloud
Steps to reproduce
I want to use the list operation module to extract the URL of the file file, including the dify cloud and local deployment operations, and the workflow shows that it can be completed. As shown below:
However, on the dify cloud, the output is null, and in the local deployment, the output is path, but it does not contain parameters and cannot be used. As shown below:
The url can be output in the first or last data obtained by list_operator. After reference, url is not a field of File model, but a field processed by self.generate_url(). However, the code uses the direct output of remote_url, which is often an incomplete field or null, so it is more reasonable to replace it with a field generated by generate_url()
✔️ Expected Behavior
image_url,As shown below:
❌ Actual Behavior
"url": null
The text was updated successfully, but these errors were encountered: