{"record":{"id":"f28ca010cef796af","repo":"exo-explore/exo","slug":"instance-not-found","errorCode":null,"errorMessage":"Instance not found","messagePattern":"Instance not found","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"src/exo/api/main.py","lineNumber":636,"sourceCode":"                        instance=instance,\n                        memory_delta_by_node=memory_delta_by_node or None,\n                        error=None,\n                    )\n                )\n            seen.add(\n                (\n                    model_card.model_id,\n                    sharding,\n                    instance_meta,\n                    len(placement_node_ids),\n                )\n            )\n\n        return PlacementPreviewResponse(previews=previews)\n\n    def get_instance(self, instance_id: InstanceId) -> Instance:\n        if instance_id not in self.state.instances:\n            raise HTTPException(status_code=404, detail=\"Instance not found\")\n        return self.state.instances[instance_id]\n\n    async def await_instance(\n        self,\n        model_id: ModelId,\n        timeout_seconds: float = Query(default=0.0, ge=0.0, le=300.0),\n    ) -> StreamingResponse:\n        _sleep = 0.1\n\n        async def _stream() -> AsyncGenerator[str, None]:\n            deadline = (\n                None if timeout_seconds == 0 else anyio.current_time() + timeout_seconds\n            )\n\n            while True:\n                for instance in self.state.instances.values():\n                    if instance.shard_assignments.model_id == model_id:\n                        payload = AwaitInstanceReadyMessage(instance=instance)","sourceCodeStart":618,"sourceCodeEnd":654,"githubUrl":"https://github.com/exo-explore/exo/blob/21a54c5ea0230a3bec1e1a786d200126c7e34ec6/src/exo/api/main.py#L618-L654","documentation":"Error \"Instance not found\" thrown in exo-explore/exo.","triggerScenarios":"Thrown at src/exo/api/main.py:636 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"}