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条回答
该账号已被封号
2楼-- · 2019-03-10 22:58

To config Proxy for Atom to install new pakage, just open CMD and run these commands:

  • apm config set strict-ssl false
  • apm config set proxy your_proxy
  • apm config set your_proxy
查看更多
Anthone
3楼-- · 2019-03-10 22:59

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