{
"message": "内部サーバーエラー",
"code": "unknown",
"status": 500
}
APIが500を返しました。
ログは以下の通りです:
{"log":"2026-01-06 06:46:41.344 ERROR [Dummy-4095] [app.py:875] - /v1/datasets/84b55dd8-252a-48b0-8182-7053cd410379/documents/ab70f332-311d-4579-8553-b646f1099db2/update-by-text [POST] での例外発生\n","stream":"stdout","time":"2026-01-06T06:46:41.347171968Z"}
{"log":"Traceback (most recent call last):\n","stream":"stdout","time":"2026-01-06T06:46:41.34721147Z"}
{"log":" File \"/app/api/.venv/lib/python3.12/site-packages/referencing/_core.py\", line 276, in pointer\n","stream":"stdout","time":"2026-01-06T06:46:41.347216769Z"}
{"log":" contents = contents[segment] # type: ignore[reportUnknownArgumentType]\n","stream":"stdout","time":"2026-01-06T06:46:41.347221516Z"}
{"log":" ~~~~~~~~^^^^^^^^^\n","stream":"stdout","time":"2026-01-06T06:46:41.347225748Z"}
{"log":"KeyError: 'Rule'\n","stream":"stdout","time":"2026-01-06T06:46:41.347234953Z"}
{"log":"\n","stream":"stdout","time":"2026-01-06T06:46:41.347239487Z"}
{"log":"上記の例外が、以下の例外の直接原因です:\n","stream":"stdout","time":"2026-01-06T06:46:41.347249347Z"}
{"log":"Traceback (most recent call last):\n","stream":"stdout","time":"2026-01-06T06:46:41.347257851Z"}
{"log":" File \"/app/api/.venv/lib/python3.12/site-packages/jsonschema/validators.py\", line 463, in _validate_reference\n","stream":"stdout","time":"2026-01-06T06:46:41.347261841Z"}
{"log":" resolved = self._resolver.lookup(ref)\n","stream":"stdout","time":"2026-01-06T06:46:41.347266095Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stdout","time":"2026-01-06T06:46:41.347270313Z"}
{"log":" File \"/app/api/.venv/lib/python3.12/site-packages/referencing/_core.py\", line 690, in lookup\n","stream":"stdout","time":"2026-01-06T06:46:41.347280495Z"}
{"log":" return retrieved.value.pointer(pointer=fragment, resolver=resolver)\n","stream":"stdout","time":"2026-01-06T06:46:41.34728454Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stdout","time":"2026-01-06T06:46:41.347288836Z"}
{"log":" File \"/app/api/.venv/lib/python3.12/site-packages/referencing/_core.py\", line 279, in pointer\n","stream":"stdout","time":"2026-01-06T06:46:41.347292631Z"}
{"log":" raise error from lookup_error\n","stream":"stdout","time":"2026-01-06T06:46:41.347297092Z"}
{"log":"referencing.exceptions.PointerToNowhere: '/definitions/Rule' は {'$id': 'http://localhost/schema.json', 'definitions': {'Annotation': {'properties': {'id': {'type': 'string'}, 'question': {'type': 'string'}, 'answer': {'type': 'object'}, 'hit_count': {'type': 'integer'}, 'created_at': {'type': 'object'}}, 'type': 'object'}, 'AnnotationList': {'properties': {'data': {'type': 'array', 'items': {'$ref': '#/definitions/Annotation'}}, 'has_more': {'type': 'boolean'}, 'limit': {'type': 'integer'}, 'total': {'type': 'integer'}, 'page': {'type': 'integer'}}, 'type': 'object'}, 'Parameters': {'properties': {'opening_statement': {'type': 'string'}, 'suggested_questions': {'type': 'object'}, 'suggested_questions_after_answer': {'type': 'object'}, 'speech_to_text': {'type': 'object'}, 'text_to_speech': {'type': 'object'}, 'retriever_resource': {'type': 'object'}, 'annotation_reply': {'type': 'object'}, 'more_like_this': {'type': 'object'}, 'user_input_form': {'type': 'object'}, 'sensitive_word_avoidance': {'type': 'object'}, 'file_upload': {'type': 'object'}, 'system_parameters': {'$ref': '#/definitions/SystemParameters'}}, 'type': 'object'}, 'SystemParameters': {'properties': {'image_file_size_limit': {'type': 'integer'}, 'video_file_size_limit': {'type': 'integer'}, 'audio_file_size_limit': {'type': 'integer'}, 'file_size_limit': {'type': 'integer'}, 'workflow_file_upload_limit': {'type': 'integer'}}, 'type': 'object'}, 'ConversationInfiniteScrollPagination': {'properties': {'limit': {'type': 'integer'}, 'has_more': {'type': 'boolean'}, 'data': {'type': 'array', 'items': {'$ref': '#/definitions/SimpleConversation'}}}, 'type': 'object'}, 'SimpleConversation': {'properties': {'id': {'type': 'string'}, 'name': {'type': 'string'}, 'inputs': {'type': 'object'}, 'status': {'type': 'string'}, 'introduction': {'type': 'string'}, 'created_at': {'type': 'object'}, 'updated_at': {'type': 'object'}}, 'type': 'object'}, 'ConversationDelete': {'properties': {'result': {'type': 'string'}}, 'type': 'object'}, 'ConversationVariableInfiniteScrollPagination': {'properties': {'limit': {'type': 'integer'}, 'has_more': {'type': 'boolean'}, 'data': {'type': 'array', 'items': {'$ref': '#/definitions/ConversationVariable'}}}, 'type': 'object'}, 'ConversationVariable': {'properties': {'id': {'type': 'string'}, 'name': {'type': 'string'}, 'value_type': {'type': 'string'}, 'value': {'type': 'string'}, 'description': {'type': 'string'}, 'created_at': {'type': 'object'}, 'updated_at': {'type': 'object'}}, 'type': 'object'}, 'File': {'properties': {'id': {'type': 'string'}, 'name': {'type': 'string'}, 'size': {'type': 'integer'}, 'extension': {'type': 'string'}, 'mime_type': {'type': 'string'}, 'created_by': {'type': 'string'}, 'created_at': {'type': 'object'}, 'preview_url': {'type': 'string'}, 'source_url': {'type': 'string'}}, 'type': 'object'}, 'MessageInfiniteScrollPagination': {'properties': {'limit': {'type': 'integer'}, 'has_more': {'type': 'boolean'}, 'data': {'type': 'array', 'items': {'$ref': '#/definitions/Message'}}}, 'type': 'object'}, 'Message': {'properties': {'id': {'type': 'string'}, 'conversation_id': {'type': 'string'}, 'parent_message_id': {'type': 'string'}, 'inputs': {'type': 'object'}, 'query': {'type': 'string'}, 'answer': {'type': 'string'}, 'message_files': {'type': 'array', 'items': {'$ref': '#/definitions/MessageFile'}}, 'feedback': {'$ref': '#/definitions/Feedback'}, 'retriever_resources': {'type': 'object'}, 'created_at': {'type': 'object'}, 'agent_thoughts': {'type': 'array', 'items': {'$ref': '#/definitions/AgentThought'}}, 'status': {'type': 'string'}, 'error': {'type': 'string'}}, 'type': 'object'}, 'MessageFile': {'properties': {'id': {'type': 'string'}, 'filename': {'type': 'string'}, 'type': {'type': 'string'}, 'url': {'type': 'string'}, 'mime_type': {'type': 'string'}, 'size': {'type': 'integer'}, 'transfer_method': {'type': 'string'}, 'belongs_to': {'type': 'string', 'default': 'user'}, 'upload_file_id': {'type': 'string'}}, 'type': 'object'}, 'Feedback': {'properties': {'rating': {'type': 'string'}}, 'type': 'object'}, 'AgentThought': {'properties': {'id': {'type': 'string'}, 'chain_id': {'type': 'string'}, 'message_id': {'type': 'string'}, 'position': {'type': 'integer'}, 'thought': {'type': 'string'}, 'tool': {'type': 'string'}, 'tool_labels': {'type': 'object'}, 'tool_input': {'type': 'string'}, 'created_at': {'type': 'object'}, 'observation': {'type': 'string'}, 'files': {'type': 'array', 'items': {'type': 'string'}}}, 'type': 'object'}, 'Site': {'properties': {'title': {'type': 'string'}, 'chat_color_theme': {'type': 'string'}, 'chat_color_theme_inverted': {'type': 'boolean'}, 'icon_type': {'type': 'string'}, 'icon': {'type': 'string'}, 'icon_background': {'type': 'string'}, 'icon_url': {'type': 'object'}, 'description': {'type': 'string'}, 'copyright': {'type': 'string'}, 'privacy_policy': {'type': 'string'}, 'custom_disclaimer': {'type': 'string'}, 'default_language': {'type': 'string'}, 'show_workflow_steps': {'type': 'boolean'}, 'use_icon_as_answer_icon': {'type': 'boolean'}}, 'type': 'object'}, 'WorkflowRun': {'properties': {'id': {'type': 'string'}, 'workflow_id': {'type': 'string'}, 'status': {'type': 'string'}, 'inputs': {'type': 'object'}, 'outputs': {'type': 'object'}, 'error': {'type': 'string'}, 'total_steps': {'type': 'integer'}, 'total_tokens': {'type': 'integer'}, 'created_at': {'type': 'object'}, 'finished_at': {'type': 'object'}, 'elapsed_time': {'type': 'number'}}, 'type': 'object'}, 'WorkflowAppLogPagination': {'properties': {'page': {'type': 'integer'}, 'limit': {'type': 'integer'}, 'total': {'type': 'integer'}, 'has_more': {'type': 'boolean'}, 'data': {'type': 'array', 'items': {'$ref': '#/definitions/WorkflowAppLogPartial'}}}, 'type': 'object'}, 'WorkflowAppLogPartial': {'properties': {'id': {'type': 'string'}, 'workflow_run': {'$ref': '#/definitions/WorkflowRunForLog'}, 'details': {'type': 'object'}, 'created_from': {'type': 'string'}, 'created_by_role': {'type': 'string'}, 'created_by_account': {'$ref': '#/definitions/SimpleAccount'}, 'created_by_end_user': {'$ref': '#/definitions/SimpleEndUser'}, 'created_at': {'type': 'object'}}, 'type': 'object'}, 'WorkflowRunForLog': {'properties': {'id': {'type': 'string'}, 'version': {'type': 'string'}, 'status': {'type': 'string'}, 'triggered_from': {'type': 'string'}, 'error': {'type': 'string'}, 'elapsed_time': {'type': 'number'}, 'total_tokens': {'type': 'integer'}, 'total_steps': {'type': 'integer'}, 'created_at': {'type': 'object'}, 'finished_at': {'type': 'object'}, 'exceptions_count': {'type': 'integer'}}, 'type': 'object'}, 'SimpleAccount': {'properties': {'id': {'type': 'string'}, 'name': {'type': 'string'}, 'email': {'type': 'string'}}, 'type': 'object'}, 'SimpleEndUser': {'properties': {'id': {'type': 'string'}, 'type': {'type': 'string'}, 'is_anonymous': {'type': 'boolean'}, 'session_id': {'type': 'string'}}, 'type': 'object'}, 'DataSetTag': {'properties': {'id': {'type': 'string'}, 'name': {'type': 'string'}, 'type': {'type': 'string'}, 'binding_count': {'type': 'string'}}, 'type': 'object'}, 'DocumentTextUpdate': {'$defs': {'PreProcessingRule': {'properties': {'id': {'title': 'Id', 'type': 'string'}, 'enabled': {'title': 'Enabled', 'type': 'boolean'}}, 'required': ['id', 'enabled'], 'title': 'PreProcessingRule', 'type': 'object'}, 'ProcessRule': {'properties': {'mode': {'enum': ['automatic', 'custom', 'hierarchical'], 'title': 'Mode', 'type': 'string'}, 'rules': {'anyOf': [{'$ref': '#/definitions/Rule'}, {'type': 'null'}], 'default': None}}, 'required': ['mode'], 'title': 'ProcessRule', 'type': 'object'}, 'RerankingModel': {'properties': {'reranking_provider_name': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'default': None, 'title': 'Reranking Provider Name'}, 'reranking_model_name': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'default': None, 'title': 'Reranking Model Name'}}, 'title': 'RerankingModel', 'type': 'object'}, 'RetrievalMethod': {'enum': ['semantic_search', 'full_text_search', 'hybrid_search', 'keyword_search'], 'title': 'RetrievalMethod', 'type': 'string'}, 'RetrievalModel': {'properties': {'search_method': {'$ref': '#/definitions/RetrievalMethod'}, 'reranking_enable': {'title': 'Reranking Enable', 'type': 'boolean'}, 'reranking_model': {'anyOf': [{'$ref': '#/definitions/RerankingModel'}, {'type': 'null'}], 'default': None}, 'reranking_mode': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'default': None, 'title': 'Reranking Mode'}, 'top_k': {'title': 'Top K', 'type': 'integer'}, 'score_threshold_enabled': {'title': 'Score Threshold Enabled', 'type': 'boolean'}, 'score_threshold': {'anyOf': [{'type': 'number'}, {'type': 'null'}], 'default': None, 'title': 'Score Threshold'}, 'weights': {'anyOf': [{'$ref': '#/definitions/WeightModel'}, {'type': 'null'}], 'default': None}}, 'required': ['search_method', 'reranking_enable', 'top_k', 'score_threshold_enabled'], 'title': 'RetrievalModel', 'type': 'object'}, 'Rule': {'properties': {'pre_processing_rules': {'anyOf': [{'items': {'$ref': '#/definitions/PreProcessingRule'}, 'type': 'array'}, {'type': 'null'}], 'default': None, 'title': 'Pre Processing Rules'}, 'segmentation': {'anyOf': [{'$ref': '#/definitions/Segmentation'}, {'type': 'null'}], 'default': None}, 'parent_mode': {'anyOf': [{'enum': ['full-doc', 'paragraph'], 'type': 'string'}, {'type': 'null'}], 'default': None, 'title': 'Parent Mode'}, 'subchunk_segmentation': {'anyOf': [{'$ref': '#/definitions/Segmentation'}, {'type': 'null'}], 'default': None}}, 'title': 'Rule', 'type': 'object'}, 'Segmentation': {'properties': {'separator': {'default': '\\\\n', 'title': 'Separator', 'type': 'string'}, 'max_tokens': {'title': 'Max Tokens', 'type': 'integer'}, 'chunk_overlap': {'default': 0, 'title': 'Chunk Overlap', 'type': 'integer'}}, 'required': ['max_tokens'], 'title': 'Segmentation', 'type': 'object'}, 'WeightKeywordSetting': {'properties': {'keyword_weight': {'title': 'Keyword Weight', 'type': 'number'}}, 'required': ['keyword_weight'], 'title': 'WeightKeywordSetting', 'type': 'object'}, 'WeightModel': {'properties': {'weight_type': {'anyOf': [{'enum': ['semantic_first', 'keyword_first', 'customized'], 'type': 'string'}, {'type': 'null'}], 'default': None, 'title': 'Weight Type'}, 'vector_setting': {'anyOf': [{'$ref': '#/definitions/WeightVectorSetting'}, {'type': 'null'}], 'default': None}, 'keyword_setting': {'anyOf': [{'$ref': '#/definitions/WeightKeywordSetting'}, {'type': 'null'}], 'default': None}}, 'title': 'WeightModel', 'type': 'object'}, 'WeightVectorSetting': {'properties': {'vector_weight': {'title': 'Vector Weight', 'type': 'number'}, 'embedding_provider_name': {'title': 'Embedding Provider Name', 'type': 'string'}, 'embedding_model_name': {'title': 'Embedding Model Name', 'type': 'string'}}, 'required': ['vector_weight', 'embedding_provider_name', 'embedding_model_name'], 'title': 'WeightVectorSetting', 'type': 'object'}}, 'properties': {'name': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'default': None, 'title': 'Name'}, 'text': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'default': None, 'title': 'Text'}, 'process_rule': {'anyOf': [{'$ref': '#/definitions/ProcessRule'}, {'type': 'null'}], 'default': None}, 'doc_form': {'default': 'text_model', 'title': 'Doc Form', 'type': 'string'}, 'doc_language': {'default': 'English', 'title': 'Doc Language', 'type': 'string'}, 'retrieval_model': {'anyOf': [{'$ref': '#/definitions/RetrievalModel'}, {'type': 'null'}], 'default': None}}, 'title': 'DocumentTextUpdate', 'type': 'object'}, 'ProcessRule': {'$defs': {'PreProcessingRule': {'properties': {'id': {'title': 'Id', 'type': 'string'}, 'enabled': {'title': 'Enabled', 'type': 'boolean'}}, 'required': ['id', 'enabled'], 'title': 'PreProcessingRule', 'type': 'object'}, 'Rule': {'properties': {'pre_processing_rules': {'anyOf': [{'items': {'$ref': '#/definitions/PreProcessingRule'}, 'type': 'array'}, {'type': 'null'}], 'default': None, 'title': 'Pre Processing Rules'}, 'segmentation': {'anyOf': [{'$ref': '#/definitions/Segmentation'}, {'type': 'null'}], 'default': None}, 'parent_mode': {'anyOf': [{'enum': ['full-doc', 'paragraph'], 'type': 'string'}, {'type': 'null'}], 'default': None, 'title': 'Parent Mode'}, 'subchunk_segmentation': {'anyOf': [{'$ref': '#/definitions/Segmentation'}, {'type': 'null'}], 'default': None}}, 'title': 'Rule', 'type': 'object'}, 'Segmentation': {'properties': {'separator': {'default': '\\\\n', 'title': 'Separator', 'type': 'string'}, 'max_tokens': {'title': 'Max Tokens', 'type': 'integer'}, 'chunk_overlap': {'default': 0, 'title': 'Chunk Overlap', 'type': 'integer'}}, 'required': ['max_tokens'], 'title': 'Segmentation', 'type': 'object'}}, 'properties': {'mode': {'enum': ['automatic', 'custom', 'hierarchical'], 'title': 'Mode', 'type': 'string'}, 'rules': {'anyOf': \n"}