{"record":{"id":"ea58e432edb506f0","repo":"exo-explore/exo","slug":"failed-to-fetch-file-list-response-status","errorCode":null,"errorMessage":"Failed to fetch file list: {response.status}","messagePattern":"Failed to fetch file list: (.+?)","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/exo/download/download_utils.py","lineNumber":527,"sourceCode":"        elif response.status == 200:\n            data_json = await response.text()\n            data = TypeAdapter(list[FileListEntry]).validate_json(data_json)\n            files: list[FileListEntry] = []\n            for item in data:\n                if item.type == \"file\":\n                    files.append(FileListEntry.model_validate(item))\n                elif item.type == \"directory\" and recursive:\n                    # already inlined by ?recursive=true\n                    continue\n            if recursive and len(data) >= 1000:\n                # HF tree endpoint paginates at 1000; we don't follow cursors\n                logger.warning(\n                    f\"File list for {model_id} hit the 1000-entry page cap \"\n                    \"and may be truncated; cursor pagination is not implemented\"\n                )\n            return files\n        else:\n            raise Exception(f\"Failed to fetch file list: {response.status}\")\n\n\nasync def get_download_headers() -> dict[str, str]:\n    return {**(await get_auth_headers()), \"Accept-Encoding\": \"identity\"}\n\n\ndef create_http_session(\n    auto_decompress: bool = False,\n    timeout_profile: Literal[\"short\", \"long\"] = \"long\",\n) -> aiohttp.ClientSession:\n    if timeout_profile == \"short\":\n        total_timeout = 30\n        connect_timeout = 10\n        sock_read_timeout = 30\n        sock_connect_timeout = 10\n    else:\n        total_timeout = 1800\n        connect_timeout = 60","sourceCodeStart":509,"sourceCodeEnd":545,"githubUrl":"https://github.com/exo-explore/exo/blob/21a54c5ea0230a3bec1e1a786d200126c7e34ec6/src/exo/download/download_utils.py#L509-L545","documentation":"Error \"Failed to fetch file list: {response.status}\" thrown in exo-explore/exo.","triggerScenarios":"Thrown at src/exo/download/download_utils.py:527 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"}