dify icon indicating copy to clipboard operation
dify copied to clipboard

Loop and iteration node have no tracing entry in chatflow but ok in workflow

Open GeorgeCaoJ opened this issue 1 year ago • 2 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.1.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Chatflow - Not OK DSL: Chatflow-NOT OK.txt

Image

Workflow - OK DSL: Workflow-OK.txt

Image

User input: ping

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

GeorgeCaoJ avatar Mar 27 '25 13:03 GeorgeCaoJ

@ #16252 issue the same problem of Loop node

GeorgeCaoJ avatar Mar 27 '25 13:03 GeorgeCaoJ

The issue you're experiencing with "no tracing entry" for loop and iteration nodes in the chatflow component, while it works fine in the workflow component, could be related to several factors. Here are some potential causes and considerations:

  1. Child Node Identification: The tracing mechanism might be failing to correctly identify child nodes within the loop or iteration nodes in the chatflow. This could be due to missing or incorrect execution_metadata, which is crucial for tracing [1].

  2. Error Propagation: If errors in child nodes are not correctly propagated to the parent node, the status of the loop or iteration node may not reflect the actual execution state, leading to a lack of tracing entries [1].

  3. Node Processing Functions: Ensure that the functions responsible for processing child nodes, such as addChildrenToLoopNode or addChildrenToIterationNode, are functioning correctly. Any issues here could result in the tracing mechanism not accurately representing the node structure [1].

  4. Specific Errors: Check for specific errors or exceptions that might be logged, such as IteratorVariableNotFoundError, InvalidIteratorValueError, or IterationGraphNotFoundError, which could indicate underlying issues with the loop or iteration nodes [2].

Reviewing these aspects might help identify the root cause of the issue in the chatflow component.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

dosubot[bot] avatar Mar 27 '25 13:03 dosubot[bot]