huggingface / huggingface/xet-core
Download fails with "error decoding response body"
- Dominant language
- Rust
- Stars
- 592
- Forks
- 102
- Avg merge
- 5d 8h
- Merged PRs (30d)
- 9
Description
### Describe the bug
Users report some downloads fail with `RuntimeError: Task error: File reconstruction error: CAS Client Error: Format error: I/O error: error decoding response body`. One user explicitly mentioned that this only happened when he is logged in.
### System info
See https://github.com/huggingface/xet-core/issues/869#issuecomment-4943553130 & https://github.com/huggingface/xet-core/issues/869#issuecomment-5045233201
Contributor guide
Research direction
Start by reading the linked xet-core issue #869 comments, especially the reports associated with this failure and the logged-in condition. Trace the download and file-reconstruction entry points in xet-core to identify where the response body is decoded; done means the reported downloads no longer fail with this decoding error and the relevant behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100