Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iteration node cannot correctly return the file type #10596

Closed
5 tasks done
XiaoLey opened this issue Nov 12, 2024 · 4 comments
Closed
5 tasks done

iteration node cannot correctly return the file type #10596

XiaoLey opened this issue Nov 12, 2024 · 4 comments
Labels
🐞 bug Something isn't working

Comments

@XiaoLey
Copy link
Contributor

XiaoLey commented Nov 12, 2024

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • 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

Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

iter_img_error

DSL file (needs to manually change the file extension to yml):
test_iter_img.txt

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

@dosubot dosubot bot added the 🐞 bug Something isn't working label Nov 12, 2024
Copy link

dosubot bot commented Nov 12, 2024

I found two similar discussions that might be related to the issue you're experiencing:

  1. Unable to open image: /files/tools - This discussion is still open and was last updated on November 5, 2024.
  2. Generate image error - This discussion is also open and was last updated on September 13, 2024.

Regarding your issue with the iteration node not correctly returning the file type, it's important to ensure that the input variable for the iteration node is formatted as a list object. The iteration node processes each element in the input array sequentially, and the input must be an array variable [1]. If the file type is not being returned correctly, it might be due to the input not being properly formatted as an array or list.

Additionally, common causes of file type handling errors in the iteration node include issues like the iterator variable not being found or the iterator value not being a list [2]. You might want to check these aspects in your setup.

To continue talking to Dosu, mention @dosu.

@crazywoola
Copy link
Member

Please remove this node and add it again to see if this is resolved, we have found some issues related to #10421. We will fix it later.

@XiaoLey
Copy link
Contributor Author

XiaoLey commented Nov 16, 2024

@crazywoola The problem still exists and has not been resolved

yihong0618 added a commit to yihong0618/dify that referenced this issue Dec 5, 2024
…egment when node are files outputs

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
@yihong0618
Copy link
Contributor

@crazywoola The problem still exists and has not been resolved

try to fix that, can you use my code(branch) to check?

laipz8200 added a commit that referenced this issue Dec 7, 2024
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
iamjoel pushed a commit that referenced this issue Dec 16, 2024
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants