PyPI Fixes Two-Week File Download Outage Tied to Fastly CDN Bugs
PyPI experienced intermittent 502 and 503 errors on files.pythonhosted.org for about two weeks in August 2026, breaking package installations for some users. Investigation traced the issue to a Fastly canary deployment that misconfigured a single cache node, plus separate longstanding bugs in PyPI's Fastly setup around origin fallback and range requests. Both issues were resolved, with downloads fully restored by August 28.
GoKawiil's interpretation of the reporting above, not reported fact.
PyPI's infrastructure underpins package installation across the Python ecosystem, so even intermittent CDN failures can cascade into build failures for countless projects and CI pipelines. The incident also shows how user-submitted bug reports helped pinpoint a subtle vendor-side misconfiguration that PyPI's own monitoring hadn't caught, alongside uncovering unrelated technical debt in their caching logic.
- Fastly canary misconfiguration on one cache node caused intermittent 502/503 errors for two weeks.
- PyPI also found and fixed separate bugs in its own Fastly config around fallback and range requests.
- Full download functionality was restored by August 28 after both issues were resolved.
Fluent Python, 2nd Edition (O'Reilly) — If you're the kind of developer who reads PyPI incident reports for fun, Luciano Ramalho's Fluent Python is the deep dive that pairs perfectly with it. It goes past pip install into how Python's data model, iterators, and concurrency really work, so your packages behave as well as your CDN. A solid desk reference for anyone shipping to PyPI.
See Fluent Python, 2nd Edition (O'Reilly) on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.Source: blog.pypi.org, 2026-09-08
Published there as: “PyPI Blog: Incident File Hosting Errors”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.