dify icon indicating copy to clipboard operation
dify copied to clipboard

Frontend crash after adding an step into iteration

Open Bliod-Cook opened this issue 1 year ago • 3 comments

Self Checks

  • [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 (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

1.3.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Create an iteration and add a tool call step (such as a DuckDuckGo search) within it. The frontend crashes at this point, and the situation persists even after refreshing.

Here's the console log 3374-6c638544ae71a81e.js:1 Uncaught TypeError: i.find is not a function at 3374-6c638544ae71a81e.js:1:397082 at Array.forEach () at w (3374-6c638544ae71a81e.js:1:397026) at _ (3374-6c638544ae71a81e.js:1:398452) at k (3374-6c638544ae71a81e.js:1:399952) at 3374-6c638544ae71a81e.js:1:146778 at n (3374-6c638544ae71a81e.js:1:1472658) at td (3374-6c638544ae71a81e.js:1:682571) at 3374-6c638544ae71a81e.js:1:740262 at lS (7aa3e4eb-df755cd629be1b60.js:1:39325) at ot (7aa3e4eb-df755cd629be1b60.js:1:64573) at a9 (7aa3e4eb-df755cd629be1b60.js:1:63435) at a5 (7aa3e4eb-df755cd629be1b60.js:1:63052) at ov (7aa3e4eb-df755cd629be1b60.js:1:79228) at ic (7aa3e4eb-df755cd629be1b60.js:1:112360) at 7aa3e4eb-df755cd629be1b60.js:1:112205 at is (7aa3e4eb-df755cd629be1b60.js:1:112213) at u9 (7aa3e4eb-df755cd629be1b60.js:1:109424) at iQ (7aa3e4eb-df755cd629be1b60.js:1:130771) at iI (7aa3e4eb-df755cd629be1b60.js:1:129010) at ib (7aa3e4eb-df755cd629be1b60.js:1:125930) at ig (7aa3e4eb-df755cd629be1b60.js:1:123682) at u7 (7aa3e4eb-df755cd629be1b60.js:1:110614) at u9 (7aa3e4eb-df755cd629be1b60.js:1:109967) at iH (7aa3e4eb-df755cd629be1b60.js:1:130650) at MessagePort.w (7088-1d6cae86cb82768c.js:1:4842)

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Bliod-Cook avatar Apr 26 '25 16:04 Bliod-Cook

Can you provide the steps or DSL to reproduce this error?

crazywoola avatar Apr 27 '25 01:04 crazywoola

Image

crazywoola avatar Apr 27 '25 02:04 crazywoola

I also have crash as well with this DSL:

Ai-Agen-Page-Builder.yml.zip

as soon as I attach strctured ouput from LLM to Iteration Input it crashes.

Image

note: it crashing on both self hosted (1.3.0) and cloud.dify.ai

runik avatar Apr 28 '25 04:04 runik

It seems like related to newly introduced structured output. If I create array for Iterator using 'Code' node everything working fine and there is no crash

runik avatar Apr 28 '25 04:04 runik

I have fixed in this PR

fix: i.find is not a function (#18945)

Will be released later.

crazywoola avatar Apr 28 '25 05:04 crazywoola