Skip to content
This repository

Issue w/ proxy connection, not sure what else to try #87

Closed
thedamon opened this Issue February 22, 2012 · 18 comments

7 participants

Damon Muma Will Bond Maxim Ponomarev Marc Schlaich Brett Kirby matzetronic Tom Greuter
Damon Muma

I try to install the Package Control plugin, I get the following message:
"Error 407: Proxy Authentication Required"

I'm pretty sure this is a problem with our proxy server here at work (as are most things in my life) so I add the proxy and port info to the settings file for Package Control

My settings-user file looks like (proxy server/port changed):
{
"timeout": "60",
"http_proxy": "http://login:password@proxy.domain.com:7240",
"https_proxy": "http://login:password@proxy.domain.com:7262"
}

I'm still getting a 407 error when I try to run 'INSTALL PACKAGES' and I've tried the proxy settings written a few different ways (w/o the http, etc)... these are the proxy settings as copied from Firefox as set up by IT

I do notice from navigating around in Firefox with Firebug open that a lot of external requests on facebook, google etc are getting 407 errors

I'm not sure if there's anything else I can try

Will Bond
Owner

What platform are you running on?

Maxim Ponomarev

I have the same problem…
I use Package Control v.1.4.1 in office (through Microsoft ISA proxy), but I see HTTP error 407 in console when trying install packages. I tried to set up "http_proxy" in User Settings, but it didn't help.
What should I do?

P.S. Win 7 x64 on my pc.

Will Bond
Owner
wbond commented March 02, 2012

Unfortunately I don't have a proxy like yours to test against, so there isn't a whole lot I can really do. If you check out my response to issue #93, basically I need you guys to try and do some python debugging to see if you can find a way to get python to use your proxy.

Once you can figure that out, I can work with you to get Package Control to work like that.

Maxim Ponomarev

Unfortunately, I didn't have any deal with python before (I work with .net, javascript and html) and I know nothing how debug It, but I can try do It if you tell how.

Will Bond
Owner
wbond commented March 12, 2012

This may be related to outdated software on my server. I've had a number of other complaints about SSL issues, and I am in the process of moving to a new server. I'll let you know when that is done to see if it helps.

Marc Schlaich

@wbond, you need to add an urllib2.HTTPBasicAuthHandler to the opener, see http://stackoverflow.com/a/34116/851737.

Will Bond
Owner
wbond commented March 30, 2012

By the way, I did just move servers yesterday.

Maxim Ponomarev

@ms4py thanks for notification, but Package Control is working after @wbond did something with servers.

Will Bond
Owner
wbond commented June 10, 2012

There is a testing version of Package Control available which should hopefully resolve this issue thanks to @ms4py. To test it, please:

  1. In Sublime Text, click the Preferences > Browse Packages… menu entry
  2. Browse up a folder and then into the Installed Packages folder
  3. Download http://sublime.wbond.net/testing/Package%20Control.sublime-package and copy it into the Installed Packages directory
  4. Restart Sublime Text

Please post back here with your results.

Brett Kirby

I tried testing this Package Control version, and I'm getting an exception

[code]
Exception in thread Thread-7:
Traceback (most recent call last):
File ".\threading.py", line 532, in __bootstrap_inner
File ".\Package Control.py", line 1923, in run
File ".\Package Control.py", line 1765, in make_package_list
File ".\Package Control.py", line 1127, in list_available_packages
File ".\Package Control.py", line 1029, in list_repositories
TypeError: 'NoneType' object is not iterable
[/code]

I just hit Control + Shift + P, and then typed Install. Hitting enter gives me that error in console. Are there any extra steps to using this "new" testing package control?

Will Bond
Owner
wbond commented July 06, 2012

I've posted a new version of Package Control (1.5.0.11) just today at https://sublime.wbond.net/testing/Package%20Control.sublime-package. Please:

  1. In Sublime Text, click the Preferences > Browse Packages… menu entry
  2. Browse up a folder and then into the Installed Packages folder
  3. Download http://sublime.wbond.net/testing/Package%20Control.sublime-package and copy it into the Installed Packages directory
  4. Restart Sublime Text

Also note that in the new version, there are separate settings for proxy_username and proxy_password which you may need to set.

This new version adds support for basic, digest and ntlm auth for proxies. Unfortunately I don't have any of these to test against, but I am hoping it will help with your issue, and you can report any issues back.

Brett Kirby
Marc Schlaich

Delete folder "Package Control" in sublime package directory ;-)

(And Package Control.sublime-settings in the User directory if you want to delete your custom settings, too.)

Brett Kirby
Brett Kirby

On second thought, now I can't see package control. I deleted everything(package control related per your instruction) and simply placed the new package control file into Installed Packages folder.

Am I missing something?

matzetronic

@wbond the new package file (1.5.0.11) solves the problem for me, thanks!

Tom Greuter

FWIW: I too had problems connecting through a proxy from a Windows XP machine. I tried the above mentioned test package (https://sublime.wbond.net/testing/Package%20Control.sublime-package) with the seperate proxy_username and proxy_password settings. This worked!

But after restarting ST2 it suddenly stopped working... I now get the following error:
Package Control: Error downloading channel. URL error Tunnel connection failed: 407 Proxy Authentication Required downloading https://sublime.wbond.net/repositories.json.
error: Package Control: There are no packages available for installation.

Maybe wbond.net is now blacklisted by my proxy server?

Will Bond
Owner

The testing version (http://wbond.net/sublime_packages/package_control/installation#Testing_Version) should have this fixed now.

Be sure to set the http_proxy and https_proxy settings like ip_or_host:port and do not include http://. Authentication information should be set in proxy_username and proxy_password settings. If you are still having trouble, please set the debug setting to true and look at your Sublime Text console to see the messages being sent back and forth between your machine and the proxy.

If you are still having trouble with the testing version, please open a new issue with debug info.

Will Bond wbond closed this November 08, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.