calesthio/OpenMontage · error · RuntimeError

JAXA download failed for {detail_url}: {e}

Error message

JAXA download failed for {detail_url}: {e}

What it means

Error "JAXA download failed for {detail_url}: {e}" thrown in calesthio/OpenMontage.

Source

Thrown at tools/video/stock_sources/jaxa.py:194

            # High-res image links
            if not download_url and candidate.kind == "image":
                for a in soup.select("a[href]"):
                    href = a.get("href", "")
                    if any(ext in href.lower() for ext in [".jpg", ".jpeg", ".png", ".tif"]):
                        download_url = href
                        break

            if not download_url:
                raise ValueError(f"Could not find download URL on JAXA page: {detail_url}")

            if not download_url.startswith("http"):
                download_url = f"{_BASE_URL}/{download_url.lstrip('/')}"

            return self._stream_download(download_url, out_path)

        except Exception as e:
            raise RuntimeError(f"JAXA download failed for {detail_url}: {e}") from e

    def _stream_download(self, url: str, out_path: Path) -> Path:
        import requests

        with requests.get(
            url, stream=True, timeout=180,
            headers={"User-Agent": "OpenMontage/1.0"},
        ) as r:
            r.raise_for_status()
            with open(out_path, "wb") as f:
                for chunk in r.iter_content(chunk_size=1 << 16):
                    if chunk:
                        f.write(chunk)
        return out_path

View on GitHub (pinned to 95e1c3d0ab)

Solutions

  1. Retry the download; transient network errors are the usual cause.
  2. If it keeps failing, open the detail URL manually and download the asset with a browser or curl.

When it happens

Trigger: The HTTP download of a JAXA stock clip fails with a network or response error.

Common situations: See trigger scenarios.


AI-assisted analysis of calesthio/OpenMontage@95e1c3d0ab (2026-08-15). Data as JSON: /api/errors/175500d8322c6225. Report an issue: GitHub.