Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise with more info on 416 invalid range #2449

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Aug 14, 2024

Should help investigate #2248 and this convo (private slack).

From time to time we get reported that a 416 Range Not Satisfiable is raised. This PR adds more information to the raised error (requested range + response content range, if any). Should help investigate the issue.

Example:
huggingface_hub.utils._errors.HfHubHTTPError: 416 Client Error: Range Not Satisfiable for url: https://huggingface.co/datasets/open-llm-leaderboard/results/resolve/6a8ff66a20da618386689e7e7c9c76932f0c33bf/.gitattributes. Requested range: bytes=5000-10000. Content-Range: bytes */2307. (Request ID: Root=1-66bca67b-6ad70d2e5d2917ce5d09d6b4;ffa33b3a-74de-4d8b-9d96-b240d7f8ebe6)

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whynot

@Wauplin Wauplin merged commit dfd73c0 into main Aug 14, 2024
15 of 17 checks passed
@Wauplin Wauplin deleted the more-details-on-416-error branch August 14, 2024 13:21
@Wauplin Wauplin restored the more-details-on-416-error branch August 14, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants