Pip silently ignores index pages with unexpected content type #6754
Labels
auto-locked
Outdated issues that have been locked by automation
C: download
About fetching data from PyPI and other sources
state: needs discussion
This needs some more discussion
type: enhancement
Improvements to functionality
Environment
Description
As mentioned in #6697, if a package index page configured via
--index-url
returns an unexpected content type, then pip silently ignores it and displays a generic "No matching distribution found" error message.Expected behavior
pip should display a warning in the event that the content returned by the package index is ill-formed or not understood.
How to Reproduce
repro.sh
Output
run 1
run 2 (verbose)
Specifically, the issue is that the message
only shows up with
--verbose
.The text was updated successfully, but these errors were encountered: