bytedance/deer-flow · error · HTTPException
Run {run_id} not found in thread {thread_id}
Error message
Run {run_id} not found in thread {thread_id} What it means
Error "Run {run_id} not found in thread {thread_id}" thrown in bytedance/deer-flow.
Source
Thrown at backend/app/gateway/routers/feedback.py:81
@require_permission("threads", "write", owner_check=True, require_existing=True)
async def upsert_feedback(
thread_id: ThreadId,
run_id: str,
body: FeedbackUpsertRequest,
request: Request,
) -> dict[str, Any]:
"""Create or update feedback for a run (idempotent)."""
if body.rating not in (1, -1):
raise HTTPException(status_code=400, detail="rating must be +1 or -1")
user_id = await get_current_user(request)
run_store = get_run_store(request)
run = await run_store.get(run_id)
if run is None:
raise HTTPException(status_code=404, detail=f"Run {run_id} not found")
if run.get("thread_id") != thread_id:
raise HTTPException(status_code=404, detail=f"Run {run_id} not found in thread {thread_id}")
feedback_repo = get_feedback_repo(request)
return await feedback_repo.upsert(
run_id=run_id,
thread_id=thread_id,
rating=body.rating,
user_id=user_id,
comment=body.comment,
)
@router.delete("/{thread_id}/runs/{run_id}/feedback")
@require_permission("threads", "delete", owner_check=True, require_existing=True)
async def delete_run_feedback(
thread_id: ThreadId,
run_id: str,
request: Request,
) -> dict[str, bool]:View on GitHub (pinned to 1dd6ba1acb)
Solutions
- Use the run_id that belongs to the given thread_id; a run from another thread is rejected.
- Fetch the thread's runs first and pass the matching ids.
When it happens
Trigger: Thrown at backend/app/gateway/routers/feedback.py:81 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of bytedance/deer-flow@1dd6ba1acb (2026-08-14).
Data as JSON: /api/errors/3f59afac0377a99b.
Report an issue: GitHub.