update child_chunks error #18026

Closed
opened 2026-02-21 19:42:39 -05:00 by yindo · 0 comments
Owner

Originally created by @yjrguxing on GitHub (Sep 23, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.8.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

First, I used the API to add a new section to the parent-child sectioned document. Then, I used the API to add a child section to that section. After that, I used the API again to update the section. Finally, when I attempted to update the child section using the API once more, an error occurred.
The error message for updating the sub-section is as follows:

{
    "code": "not_found",
    "message": "Segment not found.",
    "status": 404
}

However, segmentation does exist in practice, as shown below:

Image

dataset_id:7293fd16-749a-4a0d-9c43-e1eb9e485a3d
document_id:323b7617-c2f1-4fb5-bf38-d81d68140184
segment_id:22d22e66-accb-44ce-8b5e-d120a7a2edd3
child_chunk_id:872a4869-139e-48a0-b559-39bd36324e81

The specific error request is as follows:

Image The relevant parameters were also carefully reviewed and found to be correct.

✔️ Expected Behavior

The child-segments of this segments are updated normally.

Actual Behavior

{
    "code": "not_found",
    "message": "Segment not found.",
    "status": 404
}
Originally created by @yjrguxing on GitHub (Sep 23, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.8.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce First, I used the API to add a new section to the parent-child sectioned document. Then, I used the API to add a child section to that section. After that, I used the API again to update the section. Finally, when I attempted to update the child section using the API once more, an error occurred. The error message for updating the sub-section is as follows: ``` { "code": "not_found", "message": "Segment not found.", "status": 404 } ``` However, segmentation does exist in practice, as shown below: <img width="1978" height="1316" alt="Image" src="https://github.com/user-attachments/assets/2e4d222e-4f34-412f-8a13-57d3a5b2da51" /> > dataset_id:7293fd16-749a-4a0d-9c43-e1eb9e485a3d > document_id:323b7617-c2f1-4fb5-bf38-d81d68140184 > segment_id:22d22e66-accb-44ce-8b5e-d120a7a2edd3 > child_chunk_id:872a4869-139e-48a0-b559-39bd36324e81 The specific error request is as follows: <img width="1718" height="571" alt="Image" src="https://github.com/user-attachments/assets/4e50c3c5-013d-4509-98b7-129002bfb71b" /> The relevant parameters were also carefully reviewed and found to be correct. ### ✔️ Expected Behavior The child-segments of this segments are updated normally. ### ❌ Actual Behavior ``` { "code": "not_found", "message": "Segment not found.", "status": 404 } ```
yindo added the 🐞 bug label 2026-02-21 19:42:39 -05:00
yindo closed this issue 2026-02-21 19:42:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#18026