{"record":{"id":"d273b39474931a4a","repo":"langgenius/dify","slug":"conversation-not-exists-d273b3","errorCode":null,"errorMessage":"Conversation Not Exists.","messagePattern":"Conversation Not Exists\\.","errorType":"http","errorClass":"NotFound","httpStatus":404,"severity":"error","filePath":"api/controllers/console/app/conversation.py","lineNumber":222,"sourceCode":"    @console_ns.doc(params={\"app_id\": \"Application ID\", \"conversation_id\": \"Conversation ID\"})\n    @console_ns.response(204, \"Conversation deleted successfully\")\n    @console_ns.response(403, \"Insufficient permissions\")\n    @console_ns.response(404, \"Conversation not found\")\n    @setup_required\n    @login_required\n    @account_initialization_required\n    @edit_permission_required\n    @rbac_permission_required(RBACResourceScope.APP, RBACPermission.APP_EDIT)\n    @with_current_user\n    @with_session\n    @get_app_model(mode=AppMode.COMPLETION)\n    def delete(self, session: Session, current_user: Account, app_model: App, conversation_id: UUID):\n        conversation_id_str = str(conversation_id)\n\n        try:\n            ConversationService.delete(app_model, conversation_id_str, current_user, session=session)\n        except ConversationNotExistsError:\n            raise NotFound(\"Conversation Not Exists.\")\n\n        return \"\", 204\n\n\n@console_ns.route(\"/apps/<uuid:app_id>/chat-conversations\")\nclass ChatConversationApi(Resource):\n    @console_ns.doc(\"list_chat_conversations\")\n    @console_ns.doc(description=\"Get chat conversations with pagination, filtering and summary\")\n    @console_ns.doc(params={\"app_id\": \"Application ID\", **query_params_from_model(ChatConversationQuery)})\n    @console_ns.response(200, \"Success\", console_ns.models[ConversationWithSummaryPaginationResponse.__name__])\n    @console_ns.response(403, \"Insufficient permissions\")\n    @setup_required\n    @login_required\n    @account_initialization_required\n    @edit_permission_required\n    @with_current_user\n    @rbac_permission_required(RBACResourceScope.APP, RBACPermission.APP_VIEW_LAYOUT)\n    @with_session(write=False)","sourceCodeStart":204,"sourceCodeEnd":240,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/api/controllers/console/app/conversation.py#L204-L240","documentation":"Error \"Conversation Not Exists.\" thrown in langgenius/dify.","triggerScenarios":"Thrown at api/controllers/console/app/conversation.py:222 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ef8544b173fd6cd7a8e71df2cab576e52bebbfbc","analyzedAt":"2026-08-12T05:15:17.394Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}