From 5cab6c4ccbbaf5c930f39ad396cd46f1e29a2088 Mon Sep 17 00:00:00 2001 From: k Date: Wed, 26 Feb 2025 15:57:50 +0800 Subject: [PATCH] =?UTF-8?q?Fix:HTTP=20API=20->=20Stop=20parsing=20document?= =?UTF-8?q?s(AttributeError:=20=E2=80=98list=E2=80=98=20object=20=E2=80=A6?= =?UTF-8?q?=20(#5375)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …has no attribute ‘id‘) ### What problem does this PR solve? No PR ![image](https://github.com/user-attachments/assets/988d31bc-6551-4bb8-846c-cbbc1883d804) ![image](https://github.com/user-attachments/assets/8b09681b-1239-4ed9-8bc3-11436c5e90bc) ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [ ] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe): --- api/apps/sdk/doc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/apps/sdk/doc.py b/api/apps/sdk/doc.py index db3242251..05cb204c6 100644 --- a/api/apps/sdk/doc.py +++ b/api/apps/sdk/doc.py @@ -734,7 +734,7 @@ def stop_parsing(tenant_id, dataset_id): ) info = {"run": "2", "progress": 0, "chunk_num": 0} DocumentService.update_by_id(id, info) - settings.docStoreConn.delete({"doc_id": doc.id}, search.index_name(tenant_id), dataset_id) + settings.docStoreConn.delete({"doc_id": doc[0].id}, search.index_name(tenant_id), dataset_id) return get_result()