Skip to content
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

Better error message behind corporate NTLM proxy #1876

Closed
hickford opened this issue Jun 16, 2014 · 1 comment
Closed

Better error message behind corporate NTLM proxy #1876

hickford opened this issue Jun 16, 2014 · 1 comment
Labels
C: error messages Improving error messages C: proxy Dealing with proxies and networking state: awaiting PR Feature discussed, PR is needed type: enhancement Improvements to functionality

Comments

@hickford
Copy link

Pip doesn't work behind a corporate NTLM proxy. This is #1182 and unlikely to be fixed any time soon (requires upstream fixes in requests and urllib3)

However, the error message in this situation could be improved. Right now you get

>pip install requests
Cannot fetch index base URL https://pypi.python.org/simple/

Which doesn't explain the problem, nor how to fix it.

Compare that with Ruby's Gem or Nodejs' Npm which give more precise error messages

>gem install rails
ERROR:  While executing gem ... (Net::HTTPServerException)
  407 "Proxy Authentication Required"

and

>npm install express
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/express
npm ERR! network tunneling socket could not be established, cause=socket hang up
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.

It would be great if Pip were as helpful. It would suffice I think to show the particular http error code, as Gem does.

@hickford hickford changed the title Error message when behind corporate NTLM proxy Error message when behind corporate NTLM proxy could be more helpful Jun 16, 2014
@hickford hickford changed the title Error message when behind corporate NTLM proxy could be more helpful Better error message behind corporate NTLM proxy Jun 16, 2014
@xavfernandez xavfernandez added the C: proxy Dealing with proxies and networking label Oct 7, 2015
@pradyunsg pradyunsg added state: awaiting PR Feature discussed, PR is needed type: enhancement Improvements to functionality labels Oct 2, 2017
@pradyunsg pradyunsg modified the milestones: Improve our User Experience, Print Better Error Messages Oct 2, 2017
@nlhkabu nlhkabu added the C: error messages Improving error messages label Jul 28, 2020
@nlhkabu nlhkabu removed this from the Print Better Error Messages milestone Jul 29, 2020
@pradyunsg
Copy link
Member

Consolidating this into #5380.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: error messages Improving error messages C: proxy Dealing with proxies and networking state: awaiting PR Feature discussed, PR is needed type: enhancement Improvements to functionality
Projects
None yet
Development

No branches or pull requests

4 participants