-
Notifications
You must be signed in to change notification settings - Fork 296
Cannot install packages behind proxy: "tunneling socket could not be established, cause=socket hang up" #611
Comments
Not sure if this will help you, but for my company's proxy I found that the https-proxy worked when traversing http, but not when traversing https. So, here's how I have the proxies set in apm config:
Note that both proxies are pointed to http... |
Setting This makes atom de-facto unusable for me, as I'm not keen on sending my credentials out in plaintext… |
On Ubuntu 14.04, this does NOT work (I have a local proxy in 3128 that also configures my credentials): HTTP-PROXY = "http://localhost:3128" This DOES work: proxy = "http://localhost:3128/" Conclusion: some of the proxy variables are CONFLICTING. Anyway, works for me now. |
@Jaakk0S same problem for me on Windows 7, your solution worked. Thanks! |
@Jaakk0S, thanks a lot. Your solution works in my Windows 7 x64 also. It'd be better if someone can help to update the information here: https://github.com/atom/apm#using-a-proxy |
I concur with the last few folks. On windows 7 @Jaakk0S changes worked behind my corp fw as well. |
I posted the same here: #678 One important and MAJOR thing - should be documented BTW. If you are using Atom in portable mode and are behind a proxy and if you managed to make APM work for default directory (ex. use config below for that) (not your portable one) do this: this is generally bulletproof way to make Atom work behind proxy I use cntlm as well as my proxy requires NTLM auth. .apmrc
put that config file in your .atom sibling directory. Proxy will be respected and you'll be able to use "portable" atom. This basically destroys Portable mode as its not portable anymore. Also electonUserData hangs Atom but that was referenced in some other ticket. Since apm has to be run from its bin directory in portable Atom folder open a console and temporarly set ATOM_HOME var. ([Request] apm should do this by itself if run from portable install)
Ps2. APM should get ability to detect if it's behind proxy and use appropriate config if present as this prevents Atom from being truly portable. Who can I ping to notify about the issue and solution? This should be put into Potable mode documentation. |
I have the same issue on Mac
|
I've simply added this and worked like charm! Where I've replaced my |
Here is what I did: Example: |
Can we use |
What worked for me: SO... open ~/.atom/.apmrc. proxy=http://:/ |
@jrweinb I've been having problems with npm and the angular/cli and unsetting https-proxy from both npmrc and yarnrc as well as setting proxy and strict-ssl false did the trick. Thanks brother. |
Thank you !.. inserting only HTTP proxy and not HTTPS works for me |
This work´s not for us! We need a "proxy" repository (like Nexus or Artefactory). |
apm config set proxy http://my_proxy:my_port this worked for me, under linux, with atom 1.33.0 |
Try this complicated configuration:**** proxy=http://username:password@ip:port/ Should work ! ;) |
How come Atom updates itself just fine behind corporate proxies, but apm doesn't work? I'm still getting "tunneling socket could not be established, statusCode=407" in package manager, but Atom just updated to 1.40... sense... this makes none. |
Hi, I had the same problem but I found an alternative first search the plug-in and then open it's repo in GitHub then I cloned it into packages folder and then run npm install, I hope this works for you ✌️ |
@carlosloaiza21 , unfortunately not, because of dependencies. |
@Jaakk0S Thank you so much -> your solution worked for me. |
I'm behind my company's proxy server. I think I configured it correctly, but I'm getting the following error when I try to install packages: "tunneling socket could not be established, cause=socket hang up"
For comparison - git works fine with the same proxy settings:
The text was updated successfully, but these errors were encountered: