exo-explore/exo · error · HTTPException
unable to find path '{path.replace('/', '.')}' in state json
Error message
unable to find path '{path.replace('/', '.')}' in state json What it means
Error "unable to find path '{path.replace('/', '.')}' in state json" thrown in exo-explore/exo.
Source
Thrown at src/exo/api/main.py:424
self.app.get("/v1/traces/{task_id}/stats")(self.get_trace_stats)
self.app.get("/v1/traces/{task_id}/raw")(self.get_trace_raw)
self.app.get("/onboarding")(self.get_onboarding)
self.app.post("/onboarding")(self.complete_onboarding)
def get_state(self, path: str = ""):
if path == "":
return self.state
try:
x = self.state.model_dump(by_alias=True)
for attr in path.split("/"):
if attr != "":
if isinstance(x, dict):
x = x[attr] # pyright: ignore[reportUnknownVariableType]
elif isinstance(x, list):
x = x[int(attr)] # pyright: ignore[reportUnknownVariableType]
return cast(Any, x) # pyright: ignore[reportAny]
except Exception as e:
raise HTTPException(
status_code=404,
detail=f"unable to find path '{path.replace('/', '.')}' in state json",
) from e
async def place_instance(self, payload: PlaceInstanceParams):
command = PlaceInstance(
model_card=await ModelCard.load(payload.model_id),
sharding=payload.sharding,
instance_meta=payload.instance_meta,
min_nodes=payload.min_nodes,
)
await self._send(command)
return CreateInstanceResponse(
message="Command received.",
command_id=command.command_id,
model_card=command.model_card,
)View on GitHub (pinned to 21a54c5ea0)
When it happens
Trigger: Thrown at src/exo/api/main.py:424 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of exo-explore/exo@21a54c5ea0 (2026-08-26).
Data as JSON: /api/errors/dc39569f3b9d02cb.
Report an issue: GitHub.