{"record":{"id":"ffa85663133a612d","repo":"calesthio/OpenMontage","slug":"could-not-find-download-url-on-jaxa-page-detail","errorCode":null,"errorMessage":"Could not find download URL on JAXA page: {detail_url}","messagePattern":"Could not find download URL on JAXA page: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"tools/video/stock_sources/jaxa.py","lineNumber":186,"sourceCode":"\n            # Video elements\n            if not download_url:\n                for source in soup.select(\"video source[src], video[src]\"):\n                    src = source.get(\"src\", \"\")\n                    if src:\n                        download_url = src\n                        break\n\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:","sourceCodeStart":168,"sourceCodeEnd":204,"githubUrl":"https://github.com/calesthio/OpenMontage/blob/95e1c3d0ab93482159818560f6a8c8e866b9139f/tools/video/stock_sources/jaxa.py#L168-L204","documentation":"Error \"Could not find download URL on JAXA page: {detail_url}\" thrown in calesthio/OpenMontage.","triggerScenarios":"The JAXA stock-footage detail page HTML contains no resolvable download URL for the clip.","commonSituations":"See trigger scenarios.","solutions":["The JAXA page layout may have changed; open the detail URL in a browser and copy the direct video file URL manually.","Choose a different candidate from the search results that exposes a direct download link."],"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"}