{"record":{"id":"20b662cc48e23b34","repo":"NousResearch/hermes-agent","slug":"download-failed-for-url-exc","errorCode":null,"errorMessage":"download failed for {url}: {exc}","messagePattern":"download failed for (.+?): (.+?)","errorType":"exception","errorClass":"PetStoreError","httpStatus":null,"severity":"error","filePath":"agent/pet/store.py","lineNumber":489,"sourceCode":"def _download(url: str, dest: Path, *, timeout: float) -> None:\n    import httpx\n\n    try:\n        with httpx.stream(\n            \"GET\",\n            url,\n            timeout=timeout,\n            follow_redirects=True,\n            headers={\"User-Agent\": \"hermes-agent-petdex\"},\n        ) as resp:\n            resp.raise_for_status()\n            tmp = dest.with_suffix(dest.suffix + \".part\")\n            with tmp.open(\"wb\") as fh:\n                for chunk in resp.iter_bytes():\n                    fh.write(chunk)\n            tmp.replace(dest)\n    except Exception as exc:  # noqa: BLE001\n        raise PetStoreError(f\"download failed for {url}: {exc}\") from exc\n\n\ndef _download_json(url: str, *, timeout: float) -> dict:\n    import httpx\n\n    resp = httpx.get(\n        url,\n        timeout=timeout,\n        follow_redirects=True,\n        headers={\"User-Agent\": \"hermes-agent-petdex\"},\n    )\n    resp.raise_for_status()\n    data = resp.json()\n    return data if isinstance(data, dict) else {}\n","sourceCodeStart":471,"sourceCodeEnd":504,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/agent/pet/store.py#L471-L504","documentation":"Error \"download failed for {url}: {exc}\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at agent/pet/store.py:489 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check network access to the download URL and retry.","Retry later if the host is down; verify the URL is reachable."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c896c09c42910c584c4c7d2325b58c14713ea42c","analyzedAt":"2026-08-14T17:18:01.089Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}