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

2019-03-10 22:04发布

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?

8条回答
一纸荒年 Trace。
2楼-- · 2019-03-10 22:38

I edited the ~/.atom/.apmrc file to set my proxy as mentioned by @AlexMooney, but still got errors. The solution was to write

proxy = http://host:port
strict-ssl = false

in that ~/.atom/.apmrc file.

查看更多
We Are One
3楼-- · 2019-03-10 22:39

I am working behind a proxy server and spent about half a day on this issue, setting https_proxy as well as http_proxy didn't make a difference.

What did it for me was setting the proxy from the cmd line like so:

apm config set proxy http://myproxyaddress:port

I still can't install packages through Atom's gui, but doing it through the cmd line works fine. That I'll take.

I later realised I could've switched to the wifi and got it to work immediately...

查看更多
戒情不戒烟
4楼-- · 2019-03-10 22:43

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.

查看更多
狗以群分
5楼-- · 2019-03-10 22:43

For Windows you can easily configure the https-proxy via command line:

amd config set https-proxy https://9.0.2.1:0

It should be stored under C:\Users\...\.apm in file .apmrc

See userconfig with command

amd config list
查看更多
迷人小祖宗
6楼-- · 2019-03-10 22:44

Atom will use your shell's proxy variables (like $https_proxy) if you start Atom from a shell that has these variables set. You need to have the Atom command line tools installed for that to work.

From a shell, you can simply type atom to open the editor for the current directory. It will use all environment variables from this shell, including the proxy variables.

I find this a lot easier than setting the variables in the config file.

查看更多
不美不萌又怎样
7楼-- · 2019-03-10 22:52

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
查看更多
登录 后发表回答