NousResearch/hermes-agent · error · PetStoreError

download failed for {url}: {exc}

Error message

download failed for {url}: {exc}

What it means

Error "download failed for {url}: {exc}" thrown in NousResearch/hermes-agent.

Source

Thrown at agent/pet/store.py:489

def _download(url: str, dest: Path, *, timeout: float) -> None:
    import httpx

    try:
        with httpx.stream(
            "GET",
            url,
            timeout=timeout,
            follow_redirects=True,
            headers={"User-Agent": "hermes-agent-petdex"},
        ) as resp:
            resp.raise_for_status()
            tmp = dest.with_suffix(dest.suffix + ".part")
            with tmp.open("wb") as fh:
                for chunk in resp.iter_bytes():
                    fh.write(chunk)
            tmp.replace(dest)
    except Exception as exc:  # noqa: BLE001
        raise PetStoreError(f"download failed for {url}: {exc}") from exc


def _download_json(url: str, *, timeout: float) -> dict:
    import httpx

    resp = httpx.get(
        url,
        timeout=timeout,
        follow_redirects=True,
        headers={"User-Agent": "hermes-agent-petdex"},
    )
    resp.raise_for_status()
    data = resp.json()
    return data if isinstance(data, dict) else {}

View on GitHub (pinned to c896c09c42)

Solutions

  1. Check network access to the download URL and retry.
  2. Retry later if the host is down; verify the URL is reachable.

When it happens

Trigger: Thrown at agent/pet/store.py:489 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of NousResearch/hermes-agent@c896c09c42 (2026-08-14). Data as JSON: /api/errors/20b662cc48e23b34. Report an issue: GitHub.