{"record":{"id":"4aeb8fb0260b84fa","repo":"calesthio/OpenMontage","slug":"mixkit-download-failed-for-detail-url-e","errorCode":null,"errorMessage":"Mixkit download failed for {detail_url}: {e}","messagePattern":"Mixkit download failed for (.+?): (.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"tools/video/stock_sources/mixkit.py","lineNumber":202,"sourceCode":"\n            # Look for data attributes with video URLs\n            if not download_url:\n                for el in soup.select(\"[data-video-url], [data-download-url], [data-src]\"):\n                    url = el.get(\"data-video-url\") or el.get(\"data-download-url\") or el.get(\"data-src\") or \"\"\n                    if url and any(ext in url.lower() for ext in [\".mp4\", \".mov\"]):\n                        download_url = url\n                        break\n\n            if not download_url:\n                raise ValueError(f\"Could not find download URL on Mixkit page: {detail_url}\")\n\n            if not download_url.startswith(\"http\"):\n                download_url = f\"https://mixkit.co{download_url}\"\n\n            return self._stream_download(download_url, out_path)\n\n        except Exception as e:\n            raise RuntimeError(f\"Mixkit 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=120,\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":184,"sourceCodeEnd":217,"githubUrl":"https://github.com/calesthio/OpenMontage/blob/95e1c3d0ab93482159818560f6a8c8e866b9139f/tools/video/stock_sources/mixkit.py#L184-L217","documentation":"Error \"Mixkit download failed for {detail_url}: {e}\" thrown in calesthio/OpenMontage.","triggerScenarios":"The HTTP download of a Mixkit stock clip fails with a network or response error.","commonSituations":"See trigger scenarios.","solutions":["Retry the download — Mixkit CDN failures are often transient.","If persistent, download the clip manually from the detail URL and place it in the expected cache path."],"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"}