{"record":{"id":"dc39569f3b9d02cb","repo":"exo-explore/exo","slug":"unable-to-find-path-path-replace-in","errorCode":null,"errorMessage":"unable to find path '{path.replace('/', '.')}' in state json","messagePattern":"unable to find path '(.+?)' in state json","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"src/exo/api/main.py","lineNumber":424,"sourceCode":"        self.app.get(\"/v1/traces/{task_id}/stats\")(self.get_trace_stats)\n        self.app.get(\"/v1/traces/{task_id}/raw\")(self.get_trace_raw)\n        self.app.get(\"/onboarding\")(self.get_onboarding)\n        self.app.post(\"/onboarding\")(self.complete_onboarding)\n\n    def get_state(self, path: str = \"\"):\n        if path == \"\":\n            return self.state\n        try:\n            x = self.state.model_dump(by_alias=True)\n            for attr in path.split(\"/\"):\n                if attr != \"\":\n                    if isinstance(x, dict):\n                        x = x[attr]  # pyright: ignore[reportUnknownVariableType]\n                    elif isinstance(x, list):\n                        x = x[int(attr)]  # pyright: ignore[reportUnknownVariableType]\n            return cast(Any, x)  # pyright: ignore[reportAny]\n        except Exception as e:\n            raise HTTPException(\n                status_code=404,\n                detail=f\"unable to find path '{path.replace('/', '.')}' in state json\",\n            ) from e\n\n    async def place_instance(self, payload: PlaceInstanceParams):\n        command = PlaceInstance(\n            model_card=await ModelCard.load(payload.model_id),\n            sharding=payload.sharding,\n            instance_meta=payload.instance_meta,\n            min_nodes=payload.min_nodes,\n        )\n        await self._send(command)\n\n        return CreateInstanceResponse(\n            message=\"Command received.\",\n            command_id=command.command_id,\n            model_card=command.model_card,\n        )","sourceCodeStart":406,"sourceCodeEnd":442,"githubUrl":"https://github.com/exo-explore/exo/blob/21a54c5ea0230a3bec1e1a786d200126c7e34ec6/src/exo/api/main.py#L406-L442","documentation":"Error \"unable to find path '{path.replace('/', '.')}' in state json\" thrown in exo-explore/exo.","triggerScenarios":"Thrown at src/exo/api/main.py:424 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"}