{"record":{"id":"175500d8322c6225","repo":"calesthio/OpenMontage","slug":"jaxa-download-failed-for-detail-url-e","errorCode":null,"errorMessage":"JAXA download failed for {detail_url}: {e}","messagePattern":"JAXA download failed for (.+?): (.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"tools/video/stock_sources/jaxa.py","lineNumber":194,"sourceCode":"\n            # High-res image links\n            if not download_url and candidate.kind == \"image\":\n                for a in soup.select(\"a[href]\"):\n                    href = a.get(\"href\", \"\")\n                    if any(ext in href.lower() for ext in [\".jpg\", \".jpeg\", \".png\", \".tif\"]):\n                        download_url = href\n                        break\n\n            if not download_url:\n                raise ValueError(f\"Could not find download URL on JAXA page: {detail_url}\")\n\n            if not download_url.startswith(\"http\"):\n                download_url = f\"{_BASE_URL}/{download_url.lstrip('/')}\"\n\n            return self._stream_download(download_url, out_path)\n\n        except Exception as e:\n            raise RuntimeError(f\"JAXA download failed for {detail_url}: {e}\") from e\n\n    def _stream_download(self, url: str, out_path: Path) -> Path:\n        import requests\n\n        with requests.get(\n            url, stream=True, timeout=180,\n            headers={\"User-Agent\": \"OpenMontage/1.0\"},\n        ) as r:\n            r.raise_for_status()\n            with open(out_path, \"wb\") as f:\n                for chunk in r.iter_content(chunk_size=1 << 16):\n                    if chunk:\n                        f.write(chunk)\n        return out_path\n","sourceCodeStart":176,"sourceCodeEnd":209,"githubUrl":"https://github.com/calesthio/OpenMontage/blob/95e1c3d0ab93482159818560f6a8c8e866b9139f/tools/video/stock_sources/jaxa.py#L176-L209","documentation":"Error \"JAXA download failed for {detail_url}: {e}\" thrown in calesthio/OpenMontage.","triggerScenarios":"The HTTP download of a JAXA stock clip fails with a network or response error.","commonSituations":"See trigger scenarios.","solutions":["Retry the download; transient network errors are the usual cause.","If it keeps failing, open the detail URL manually and download the asset with a browser or curl."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"95e1c3d0ab93482159818560f6a8c8e866b9139f","analyzedAt":"2026-08-15T06:31:20.014Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}