{"record":{"id":"56ca1b4ffb65513e","repo":"bytedance/deer-flow","slug":"failed-to-get-thread-history","errorCode":null,"errorMessage":"Failed to get thread history","messagePattern":"Failed to get thread history","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"backend/app/gateway/routers/threads.py","lineNumber":1493,"sourceCode":"            # Keep step for ordering context\n            if \"step\" in metadata:\n                user_meta[\"step\"] = metadata[\"step\"]\n\n            entries.append(\n                HistoryEntry(\n                    checkpoint_id=checkpoint_id,\n                    parent_checkpoint_id=parent_id,\n                    metadata=user_meta,\n                    values=values,\n                    created_at=coerce_iso(snapshot.created_at or metadata.get(\"created_at\", \"\")),\n                    next=next_tasks,\n                )\n            )\n    except _CHECKPOINT_MODE_ERRORS as exc:\n        raise _checkpoint_mode_http_error(exc, thread_id) from exc\n    except Exception:\n        logger.exception(\"Failed to get history for thread %s\", sanitize_log_param(thread_id))\n        raise HTTPException(status_code=500, detail=\"Failed to get thread history\")\n\n    return entries\n","sourceCodeStart":1475,"sourceCodeEnd":1496,"githubUrl":"https://github.com/bytedance/deer-flow/blob/1dd6ba1acb03700589994b0366c5d1c7d05e2eff/backend/app/gateway/routers/threads.py#L1475-L1496","documentation":"Error \"Failed to get thread history\" thrown in bytedance/deer-flow.","triggerScenarios":"Thrown at backend/app/gateway/routers/threads.py:1493 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the Gateway logs for the underlying history read error.","Verify the thread exists and checkpoint storage is healthy, then retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1dd6ba1acb03700589994b0366c5d1c7d05e2eff","analyzedAt":"2026-08-14T21:20:34.804Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}