dataset api is not working #1272

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

Originally created by @ipv4sq on GitHub (Mar 8, 2024).

Originally assigned to: @crazywoola on GitHub.

Self Checks

  • 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).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.5.9

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Simply test this api
/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}
You will hit this no matter keywords is set or not

2024-03-08T14:18:02.784104355Z ERROR:root:update segment index failed
2024-03-08T14:18:02.784192954Z Traceback (most recent call last):
2024-03-08T14:18:02.784197402Z   File "/app/api/services/dataset_service.py", line 1170, in update_segment
2024-03-08T14:18:02.784201009Z     if args['keywords']:
2024-03-08T14:18:02.784205207Z KeyError: 'keywords'
2024-03-08T14:18:04.995994144Z ERROR:root:update segment index failed
2024-03-08T14:18:04.996038869Z Traceback (most recent call last):
2024-03-08T14:18:04.996044219Z   File "/app/api/services/dataset_service.py", line 1170, in update_segment
2024-03-08T14:18:04.996048988Z     if args['keywords']:
2024-03-08T14:18:04.996053115Z KeyError: 'keywords'
2024-03-08T14:19:49.776140420Z ERROR:root:update segment index failed
2024-03-08T14:19:49.776192990Z Traceback (most recent call last):

✔️ Expected Behavior

should update

Actual Behavior

error

Originally created by @ipv4sq on GitHub (Mar 8, 2024). Originally assigned to: @crazywoola on GitHub. ### Self Checks - [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] Pleas do not modify this template :) and fill in all the required fields. ### Dify version 0.5.9 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Simply test this api /datasets/{dataset_id}/documents/{document_id}/segments/{segment_id} You will hit this no matter keywords is set or not ``` 2024-03-08T14:18:02.784104355Z ERROR:root:update segment index failed 2024-03-08T14:18:02.784192954Z Traceback (most recent call last): 2024-03-08T14:18:02.784197402Z File "/app/api/services/dataset_service.py", line 1170, in update_segment 2024-03-08T14:18:02.784201009Z if args['keywords']: 2024-03-08T14:18:02.784205207Z KeyError: 'keywords' 2024-03-08T14:18:04.995994144Z ERROR:root:update segment index failed 2024-03-08T14:18:04.996038869Z Traceback (most recent call last): 2024-03-08T14:18:04.996044219Z File "/app/api/services/dataset_service.py", line 1170, in update_segment 2024-03-08T14:18:04.996048988Z if args['keywords']: 2024-03-08T14:18:04.996053115Z KeyError: 'keywords' 2024-03-08T14:19:49.776140420Z ERROR:root:update segment index failed 2024-03-08T14:19:49.776192990Z Traceback (most recent call last): ``` ### ✔️ Expected Behavior should update ### ❌ Actual Behavior error
yindo added the 🐞 bug label 2026-02-21 17:31:39 -05:00
yindo closed this issue 2026-02-21 17:31: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#1272