-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Comments
triage-new-issues
bot
added
the
S: needs triage
Issues/PRs that need to be triaged
label
Jul 20, 2019
chrahunt
added
C: download
About fetching data from PyPI and other sources
state: needs discussion
This needs some more discussion
type: enhancement
Improvements to functionality
labels
Jul 20, 2019
triage-new-issues
bot
removed
the
S: needs triage
Issues/PRs that need to be triaged
label
Jul 20, 2019
Is this PR just a change from |
At first glance this should be useful improvement, yes. We may want to add a mention of the supported content types in the error message. |
Thanks, and it looks like pip/src/pip/_internal/index/collector.py Lines 98 to 106 in 97f6390
|
lock
bot
added
the
auto-locked
Outdated issues that have been locked by automation
label
Jun 24, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: