exo-explore/exo · error · HTTPException
Image not found or expired
Error message
Image not found or expired
What it means
Error "Image not found or expired" thrown in exo-explore/exo.
Source
Thrown at src/exo/api/main.py:1032
def _generate_json_array(events: Iterable[Event]) -> Iterable[str]:
yield "["
first = True
for event in events:
if not first:
yield ","
first = False
yield event.model_dump_json()
yield "]"
return StreamingResponse(
_generate_json_array(self._event_log.read_all()),
media_type="application/json",
)
async def get_image(self, image_id: str) -> FileResponse:
stored = self._image_store.get(Id(image_id))
if stored is None:
raise HTTPException(status_code=404, detail="Image not found or expired")
return FileResponse(path=stored.file_path, media_type=stored.content_type)
async def list_images(self, request: Request) -> ImageListResponse:
"""List all stored images."""
stored_images = self._image_store.list_images()
return ImageListResponse(
data=[
ImageListItem(
image_id=img.image_id,
url=self._build_image_url(request, img.image_id),
content_type=img.content_type,
expires_at=img.expires_at,
)
for img in stored_images
]
)
def _build_image_url(self, request: Request, image_id: Id) -> str:View on GitHub (pinned to 21a54c5ea0)
When it happens
Trigger: Thrown at src/exo/api/main.py:1032 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/ad030b6676f2519a.
Report an issue: GitHub.