Skip to content

fix: add follow_redirects=True to all httpx stream calls#764

Merged
mishig25 merged 1 commit intomainfrom
fix/httpx-follow-redirects
Mar 9, 2026
Merged

fix: add follow_redirects=True to all httpx stream calls#764
mishig25 merged 1 commit intomainfrom
fix/httpx-follow-redirects

Conversation

@mishig25
Copy link
Contributor

@mishig25 mishig25 commented Mar 9, 2026

Summary

  • httpx.stream() calls were missing follow_redirects=True, causing a 302 Found error when HuggingFace redirects dataset file downloads to CDN
  • Fixes the CI failure in this run

Changes

  • src/doc_builder/process_hf_docs.py: add follow_redirects=True to zip download stream
  • src/doc_builder/external.py: add follow_redirects=True to objects.inv stream

🤖 Generated with Claude Code

HuggingFace now serves dataset files via CDN redirects (302), causing
httpx to raise HTTPStatusError instead of following the redirect.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mishig25 mishig25 merged commit ef8190d into main Mar 9, 2026
4 checks passed
@mishig25 mishig25 deleted the fix/httpx-follow-redirects branch March 9, 2026 09:27
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.

1 participant