variables Iteration item and Iteration index cannot be displayed correctly which used HTTP node in Iteration node. #7738

Closed
opened 2026-02-21 18:22:07 -05:00 by yindo · 2 comments
Owner

Originally created by @wow-ww on GitHub (Jan 15, 2025).

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

langgenius/dify-api:0.15.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When HTTP node is used in Iteration node and json or raw format is set in the body of the HTTP node, variables Iteration item and Iteration index cannot be displayed correctly.

✔️ Expected Behavior

image

Actual Behavior

image
image

Originally created by @wow-ww on GitHub (Jan 15, 2025). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version langgenius/dify-api:0.15.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When `HTTP node` is used in `Iteration node` and `json` or `raw` format is set in the body of the HTTP node, variables `Iteration item` and `Iteration index` cannot be displayed correctly. ### ✔️ Expected Behavior ![image](https://github.com/user-attachments/assets/c1cb95c7-e155-4717-9b99-1d584ca63cf8) ### ❌ Actual Behavior ![image](https://github.com/user-attachments/assets/f38fb280-a2c0-457f-aa3e-c91ff9e06986) ![image](https://github.com/user-attachments/assets/0cb8e811-a424-4163-8b4b-83951961be5a)
yindo added the 🐞 bug label 2026-02-21 18:22:07 -05:00
yindo closed this issue 2026-02-21 18:22:07 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jan 15, 2025):

There is a similar unsolved discussion titled "Invalid built-in variables for iteration" that might be relevant to your issue. It was last updated on December 12, 2024 [1]. You might find some insights or ongoing discussions there that could help address the problem with the Iteration item and Iteration index variables not displaying correctly in the HTTP node within the Iteration node.

To continue talking to Dosu, mention @dosu.


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

@dosubot[bot] commented on GitHub (Jan 15, 2025): <!-- Answer --> There is a similar unsolved discussion titled "Invalid built-in variables for iteration" that might be relevant to your issue. It was last updated on December 12, 2024 <sup>[[1]](https://github.com/langgenius/dify/discussions/11578)</sup>. You might find some insights or ongoing discussions there that could help address the problem with the `Iteration item` and `Iteration index` variables not displaying correctly in the HTTP node within the Iteration node. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/ad0de255-0006-4ea8-a3e8-7d9ab6b0bd23?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/ad0de255-0006-4ea8-a3e8-7d9ab6b0bd23?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/ad0de255-0006-4ea8-a3e8-7d9ab6b0bd23?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/ad0de255-0006-4ea8-a3e8-7d9ab6b0bd23?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/ad0de255-0006-4ea8-a3e8-7d9ab6b0bd23?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/ad0de255-0006-4ea8-a3e8-7d9ab6b0bd23?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Jan 20, 2025):

In json mode, I figure this should be something like this:

{"number": "Iteration Count"}
@crazywoola commented on GitHub (Jan 20, 2025): In json mode, I figure this should be something like this: ``` {"number": "Iteration Count"} ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7738