We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d1ffc6 commit 476fa0bCopy full SHA for 476fa0b
src/huggingface_hub/hf_file_system.py
@@ -714,7 +714,7 @@ def _fetch_range(self, start: int, end: int) -> bytes:
714
"GET",
715
url,
716
headers=headers,
717
- retry_on_status_codes=(502, 503, 504),
+ retry_on_status_codes=(500, 502, 503, 504),
718
timeout=constants.HF_HUB_DOWNLOAD_TIMEOUT,
719
)
720
hf_raise_for_status(r)
@@ -813,7 +813,7 @@ def read(self, length: int = -1):
813
814
815
headers=self.fs._api._build_hf_headers(),
816
817
stream=True,
818
819
@@ -835,7 +835,7 @@ def read(self, length: int = -1):
835
836
837
headers={"Range": "bytes=%d-" % self.loc, **self.fs._api._build_hf_headers()},
838
839
840
841
0 commit comments