{"record":{"id":"10f2ab468f2fb147","repo":"odysseus-dev/odysseus","slug":"download-failed-str-e","errorCode":null,"errorMessage":"Download failed: {str(e)}","messagePattern":"Download failed: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"routes/embedding_routes.py","lineNumber":186,"sourceCode":"        if hf_src and _is_downloaded(hf_src):\n            return {\"status\": \"already_downloaded\", \"model\": model_name}\n\n        if model_name in _downloading:\n            return {\"status\": \"already_downloading\", \"model\": model_name}\n\n        _downloading[model_name] = True\n        try:\n            # Run in thread to not block the event loop\n            loop = asyncio.get_running_loop()\n            cache = _cache_dir()\n            await loop.run_in_executor(\n                None,\n                lambda: TextEmbedding(model_name=model_name, cache_dir=cache),\n            )\n            return {\"status\": \"downloaded\", \"model\": model_name}\n        except Exception as e:\n            logger.error(f\"Failed to download {model_name}: {e}\")\n            raise HTTPException(500, f\"Download failed: {str(e)}\")\n        finally:\n            _downloading.pop(model_name, None)\n\n    @router.get(\"/models/{model_name:path}/status\")\n    def download_status(model_name: str):\n        \"\"\"Check download status of a model.\"\"\"\n        try:\n            from fastembed import TextEmbedding\n        except ImportError:\n            raise HTTPException(503, \"fastembed is not installed\")\n\n        catalog = {m[\"model\"]: m for m in TextEmbedding.list_supported_models()}\n        if model_name not in catalog:\n            raise HTTPException(404, f\"Unknown model: {model_name}\")\n\n        hf_src = catalog[model_name].get(\"sources\", {}).get(\"hf\", \"\")\n        downloaded = _is_downloaded(hf_src) if hf_src else False\n","sourceCodeStart":168,"sourceCodeEnd":204,"githubUrl":"https://github.com/odysseus-dev/odysseus/blob/f9235ebbf13f693a6fd29ce70b097f6ec83705bf/routes/embedding_routes.py#L168-L204","documentation":"Error \"Download failed: {str(e)}\" thrown in odysseus-dev/odysseus.","triggerScenarios":"Triggered when the corresponding server-side validation or runtime check at the recorded location rejects the request or operation and returns this error message to the caller.","commonSituations":"See trigger scenarios.","solutions":["Check network connectivity to the model host and retry the download.","Review server logs for the detailed download error; free disk space if needed."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f9235ebbf13f693a6fd29ce70b097f6ec83705bf","analyzedAt":"2026-08-14T21:47:48.359Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}