{"record":{"id":"d33754f9b1048720","repo":"exo-explore/exo","slug":"trace-not-found-task-id","errorCode":null,"errorMessage":"Trace not found: {task_id}","messagePattern":"Trace not found: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"src/exo/api/main.py","lineNumber":2120,"sourceCode":"            stat = trace_file.stat()\n            created_at = datetime.fromtimestamp(\n                stat.st_mtime, tz=timezone.utc\n            ).isoformat()\n            traces.append(\n                TraceListItem(\n                    task_id=task_id,\n                    created_at=created_at,\n                    file_size=stat.st_size,\n                )\n            )\n\n        return TraceListResponse(traces=traces)\n\n    async def get_trace(self, task_id: str) -> TraceResponse:\n        trace_path = self._get_trace_path(task_id)\n\n        if not trace_path.exists():\n            raise HTTPException(status_code=404, detail=f\"Trace not found: {task_id}\")\n\n        trace_events = load_trace_file(trace_path)\n\n        return TraceResponse(\n            task_id=task_id,\n            traces=[\n                TraceEventResponse(\n                    name=event.name,\n                    start_us=event.start_us,\n                    duration_us=event.duration_us,\n                    rank=event.rank,\n                    category=event.category,\n                )\n                for event in trace_events\n            ],\n        )\n\n    async def get_trace_stats(self, task_id: str) -> TraceStatsResponse:","sourceCodeStart":2102,"sourceCodeEnd":2138,"githubUrl":"https://github.com/exo-explore/exo/blob/21a54c5ea0230a3bec1e1a786d200126c7e34ec6/src/exo/api/main.py#L2102-L2138","documentation":"Error \"Trace not found: {task_id}\" thrown in exo-explore/exo.","triggerScenarios":"Thrown at src/exo/api/main.py:2120 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":"21a54c5ea0230a3bec1e1a786d200126c7e34ec6","analyzedAt":"2026-08-26T00:02:16.033Z","schemaVersion":2},"datasetVersion":"2026-08-26T04:18:47.238Z"}