{"action":"created","issue":{"url":"https://api.github.com/repos/atom/apm/issues/338","labels_url":"https://api.github.com/repos/atom/apm/issues/338/labels{/name}","comments_url":"https://api.github.com/repos/atom/apm/issues/338/comments","events_url":"https://api.github.com/repos/atom/apm/issues/338/events","html_url":"https://github.com/atom/apm/issues/338","id":67147980,"number":338,"title":"[Proxy] Error: tunneling socket could not be established","user":{"login":"Fank","id":1900106,"avatar_url":"https://avatars.githubusercontent.com/u/1900106?v=3","gravatar_id":"","url":"https://api.github.com/users/Fank","html_url":"https://github.com/Fank","followers_url":"https://api.github.com/users/Fank/followers","following_url":"https://api.github.com/users/Fank/following{/other_user}","gists_url":"https://api.github.com/users/Fank/gists{/gist_id}","starred_url":"https://api.github.com/users/Fank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fank/subscriptions","organizations_url":"https://api.github.com/users/Fank/orgs","repos_url":"https://api.github.com/users/Fank/repos","events_url":"https://api.github.com/users/Fank/events{/privacy}","received_events_url":"https://api.github.com/users/Fank/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-08T14:53:20Z","updated_at":"2015-05-19T12:18:47Z","closed_at":"2015-04-11T08:27:18Z","body":"I can't install packages if proxy is configured.\r\nThis happens in atom version >0.188.0 and with every command (install, update ...) or package\r\n```\r\n$ apm update\r\nPackage Updates Available (3)\r\n├── autocomplete-plus 2.7.1 -> 2.9.0\r\n├── minimap 4.7.5 -> 4.7.6\r\n└── uglify 1.2.0 -> 1.2.1\r\n\r\nWould you like to install these updates? (yes) yes\r\n\r\nInstalling autocomplete-plus@2.9.0 to /home/mfkinder/.atom/packages \r\ngyp info it worked if it ends with ok\r\ngyp info using node-gyp@1.0.2\r\ngyp info using node@0.10.35 | linux | x64\r\ngyp http GET https://atom.io/download/atom-shell/v0.22.0/node-v0.22.0.tar.gz\r\ngyp WARN install got an error, rolling back install\r\ngyp ERR! install error \r\ngyp ERR! stack Error: tunneling socket could not be established, cause=Parse Error\r\ngyp ERR! stack     at ClientRequest.onError (/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:168:17)\r\ngyp ERR! stack     at ClientRequest.g (events.js:180:16)\r\ngyp ERR! stack     at ClientRequest.emit (events.js:95:17)\r\ngyp ERR! stack     at Socket.socketOnData (http.js:1593:9)\r\ngyp ERR! stack     at TCP.onread (net.js:528:27)\r\ngyp ERR! System Linux 3.16.0-34-generic\r\ngyp ERR! command \"/usr/share/atom/resources/app/apm/bin/node\" \"/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"install\" \"--target=0.22.0\" \"--dist-url=https://atom.io/download/atom-shell\" \"--arch=x64\" \"--ensure\" \"--proxy=http://srv-proc005.stuttgart.mcl.local:8080/\"\r\ngyp ERR! cwd /home/mfkinder/.atom\r\ngyp ERR! node -v v0.10.35\r\ngyp ERR! node-gyp -v v1.0.2\r\ngyp ERR! not ok \r\n```\r\n\r\n```\r\n$ apm -v\r\napm  0.157.0\r\nnpm  2.5.1\r\nnode 0.10.35\r\npython 2.7.8\r\ngit 2.1.0\r\n```\r\n\r\n```\r\n$ cat ~/.atom/.apmrc \r\nproxy=http://my-proxy:8080/\r\nhttps-proxy=http://my-proxy:8080\r\n```\r\n\r\nI used following commands to set the proxy config:\r\n```\r\napm config set proxy http://my-proxy:8080\r\napm config set https-proxy http://my-proxy:8080\r\n```"},"comment":{"url":"https://api.github.com/repos/atom/apm/issues/comments/103464881","html_url":"https://github.com/atom/apm/issues/338#issuecomment-103464881","issue_url":"https://api.github.com/repos/atom/apm/issues/338","id":103464881,"user":{"login":"searpro","id":3009883,"avatar_url":"https://avatars.githubusercontent.com/u/3009883?v=3","gravatar_id":"","url":"https://api.github.com/users/searpro","html_url":"https://github.com/searpro","followers_url":"https://api.github.com/users/searpro/followers","following_url":"https://api.github.com/users/searpro/following{/other_user}","gists_url":"https://api.github.com/users/searpro/gists{/gist_id}","starred_url":"https://api.github.com/users/searpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/searpro/subscriptions","organizations_url":"https://api.github.com/users/searpro/orgs","repos_url":"https://api.github.com/users/searpro/repos","events_url":"https://api.github.com/users/searpro/events{/privacy}","received_events_url":"https://api.github.com/users/searpro/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T12:18:47Z","updated_at":"2015-05-19T12:18:47Z","body":"try \r\n    apm set strict-ssl false\r\nThis solved my issue on windows machine"}}