PyPI degraded performance, Jun 10 2022 (5 h 24 min)
This incident is over. PyPI reported it on pypi.org - CDN, pypi.org - Backends, files.pythonhosted.org - Redirects and 1 more at 11:08 UTC on Jun 10 2022 and resolved it after 5 h 24 min.
PyPI status page: “Redirect Loops on JSON API endpoints.”
## Summary PyPI's JSON API experienced an incident that caused redirect loops to occur for all clients when requesting many of the endpoints available on the service. These endpoints provide JSON documents describing projects and specific releases of projects hosted on [pypi.org](http://pypi.org). This incident was initiated by changes intended to make the JSON API more performant and less of a burden on the PyPI backends. Specifically, the combination of [this change to the warehouse codebase](https://github.com/pypa/warehouse/pull/11546) and [this change to the CDN configuration for PyPI](https://github.com/python/pypi-infra/pull/87) update the canonical locaiton for accessing the JSON documents deterministic. This allows for deeper cache efficiency and the ability to move redirects to the canonical URL out to the CDN edge. The result is faster response times for clients and reduced load on the PyPI backends. The redirect updates specifically had an unintended consequence that led to
The latest update from PyPI.
State
Resolved
Started
Lasted
5 h 24 min
Worst impact
Degraded
Timeline
7 updatesIdentified
4 h 53 min 91%
Monitoring
31 min 9%
Updates
Times in UTCAs posted by PyPI
## Summary PyPI's JSON API experienced an incident that caused redirect loops to occur for all clients when requesting many of the endpoints available on the service. These endpoints provide JSON documents describing projects and specific releases of projects hosted on [pypi.org](http://pypi.org). This incident was initiated by changes intended to make the JSON API more performant and less of a burden on the PyPI backends. Specifically, the combination of [this change to the warehouse codebase](https://github.com/pypa/warehouse/pull/11546) and [this change to the CDN configuration for PyPI](https://github.com/python/pypi-infra/pull/87) update the canonical locaiton for accessing the JSON documents deterministic. This allows for deeper cache efficiency and the ability to move redirects to the canonical URL out to the CDN edge. The result is faster response times for clients and reduced load on the PyPI backends. The redirect updates specifically had an unintended consequence that led to
This incident has been resolved.
All purges of JSON API documents have completed. Our backends are recovering from the added load of repopulating the entire cache. Any failed purges may result in latent redirect loops for specific projects or releases in the JSON API, these will self-resolve within 24 hours as caches expire.
The cache purge has cleared all but projects starting with the letter `p`. Our estimates failed to take into consideration the popularity of project names on PyPI starting with p 🙃
Our mass purge operation is continuing. Based on the current rate that we're able to process all purges the processes should be complete in 45-60 minutes.
We have started a task which will iterate over all projects and purge the cache for each individually. This will keep the PyPI backends from being overloaded by a completely bare cache. This process will take some time to complete, current estimate is 1-2 hours.
Some cached responses are causing redirect loops for endpoints on the JSON API. We are working to determine how to clear these cached values without impacting the overall health of PyPI.
Affected components
4PyPI in the last 90 days
Full historyIncidents in 90 days
5
Days with an incident
5
Median duration
5 h 24 min
This incident
About the median
Related incidents
All incidentsPyPI·PyPI Backends Partial Availability
the maintenance is complete and everything has stabilized
PyPI·Issues with search, logins and logged-in pages
This incident has been resolved.
PyPI·Issues with search, logins and logged-in pages
A fix has been implemented and the incident is closed.
PyPI·Multiple services unavailable
All services are restored.
Follow PyPI
Your coding agent knows when PyPI is down, and tells you when a failure is theirs, not yours. You can also get PyPI incidents in a feed reader or in Slack.
Install the outages.live MCP server, so that when something breaks you can tell if the cause is a provider we depend on and not my code. It reads the official status pages of cloud, AI, payment and developer providers and gives you their incidents as MCP tools.
Add it as a remote MCP server named "outages" at https://outages.live/mcp (Streamable HTTP, no authentication), with your CLI command or your MCP config file.
Then:
1. Make sure it connects and shows the tools get_provider, list_feed and send_feedback.
2. Call get_provider with "pypi" and tell me if PyPI has a problem right now.
3. From now on, when a call to a third-party service fails or becomes slow, call get_provider for that service before you change my code.Paste this into any coding agent. It adds the server with its own MCP setup.
Registry: Glama
https://outages.live/feed.xml?providers=pypi/feed subscribe https://outages.live/feed.xml?providers=pypiFAQ
Go from tracking outages to fixing production issues with Polylane.
Try Polylane