Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to connect to atom.io for themes and packages

I believe my work proxy is preventing me from being able to add themes and packages to Atom. From the preferences menu, I get:

Fetching featured packages and themes failed. Hide output…

tunneling socket could not be established, cause=140499728967552:error:140770FC:SSL  routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:766:

Is it possible to make it use my $https_proxy variable? Is there some way to configure it to not use https?

like image 933
Alex Mooney Avatar asked Jul 24 '14 14:07

Alex Mooney


People also ask

How do I add packages to Atom editor?

There are mainly two ways to install packages for Atom: Enter apm install package-name on your terminal. Obviously, the Atom package manager, apm, must be installed (you can enter apm to verify installation). Open Atom and go to edit > preferences > install and then search for the package you want to install.

How do I see what packages are installed in Atom?

To see the installed packages, from the left sidebar, choose Packages option. This will show you all installed packages in your Atom editor. Don't touch the Core packages. The additional plugins are listed under Community Packages.


3 Answers

You can configure your proxy settings in ~/.atom/.apmrc (or Atom\resources\app\apm\node_modules\atom-package-manager\.apmrc in Windows). Per the apm README:

If you are using a proxy you can configure apm to use it by setting the https-proxy config in your ~/.atom/.apmrc file like so:

https-proxy = https://9.0.2.1:0
like image 165
Alex Mooney Avatar answered Nov 15 '22 10:11

Alex Mooney


It seems that as of Atom 1.0, there are some components that respect the http-proxy and https-proxy variables, and others that don't. For example, the initial check for the version of Atom works, but the check for packages doesn't seem to respect the http-proxy or https-proxy settings.

I was able to get Atom working with Fiddler as my proxy (on 127.0.0.1:8888) by running the following commands (on Windows):

apm config set proxy http://127.0.0.1:8888
apm config set strict-ssl false

I did not need to set http-proxy or https-proxy. I don't know if these settings have been deprecated or not, but they don't seem to work reliably in 1.0. The setting proxy works (and upgrades itself to TLS 1.2 automatically).

The entirety of my %USERPROFILE%\.atom\.apmrc file is:

strict-ssl=false
proxy=http://127.0.0.1:8888/
like image 23
NYCdotNet Avatar answered Nov 15 '22 10:11

NYCdotNet


I was getting this error on Windows 7 fro Atom 1.0, when trying to look up packages. In my case the issue was resolved by setting https-proxy variable to use http protocole instead of https. so both of the following parameters have exact same value.

here are the values from ~.atom.apmrc file

proxy=http://[host]:[port]/ https-proxy=http://[host]:[port]/

the answer by @NYCdotNet below that suggested to use

strict-ssl=false

didn't work as i was able to lookup some packages but installation failed with timeout error from GIT.

like image 3
M.A.Naseer Avatar answered Nov 15 '22 11:11

M.A.Naseer