{"record":{"id":"43b99fb27a2f556c","repo":"exo-explore/exo","slug":"failed-to-fetch-file-list-for-model-id-e","errorCode":null,"errorMessage":"Failed to fetch file list for {model_id}: {e}","messagePattern":"Failed to fetch file list for (.+?): (.+?)","errorType":"exception","errorClass":"FileNotFoundError","httpStatus":null,"severity":"error","filePath":"src/exo/download/download_utils.py","lineNumber":449,"sourceCode":"        logger.opt(exception=e).warning(\n            \"Ran into exception when fetching file list from HF.\"\n        )\n\n        if await aios.path.exists(cache_file):\n            logger.warning(\n                f\"No cached file list for {model_id} - using local file list\"\n            )\n            async with aiofiles.open(cache_file, \"r\") as f:\n                return TypeAdapter(list[FileListEntry]).validate_json(await f.read())\n        local_file_list = await _build_file_list_from_local_directory(\n            model_id, recursive\n        )\n        if local_file_list is not None:\n            logger.warning(\n                f\"Failed to fetch file list for {model_id} and no cache exists, using local file list\"\n            )\n            return local_file_list\n        raise FileNotFoundError(f\"Failed to fetch file list for {model_id}: {e}\") from e\n\n\nasync def fetch_file_list_with_retry(\n    model_id: ModelId,\n    revision: str = \"main\",\n    path: str = \"\",\n    recursive: bool = False,\n    on_connection_lost: Callable[[], None] = lambda: None,\n) -> list[FileListEntry]:\n    n_attempts = 5\n    for attempt in range(n_attempts):\n        try:\n            return await _fetch_file_list(model_id, revision, path, recursive)\n        except HuggingFaceAuthenticationError:\n            raise\n        except HuggingFaceRateLimitError as e:\n            if attempt == n_attempts - 1:\n                raise","sourceCodeStart":431,"sourceCodeEnd":467,"githubUrl":"https://github.com/exo-explore/exo/blob/21a54c5ea0230a3bec1e1a786d200126c7e34ec6/src/exo/download/download_utils.py#L431-L467","documentation":"Error \"Failed to fetch file list for {model_id}: {e}\" thrown in exo-explore/exo.","triggerScenarios":"Thrown at src/exo/download/download_utils.py:449 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"21a54c5ea0230a3bec1e1a786d200126c7e34ec6","analyzedAt":"2026-08-26T00:02:16.033Z","schemaVersion":2},"datasetVersion":"2026-08-26T04:18:47.238Z"}