{"action":"created","issue":{"url":"https://api.github.com/repos/atom/apm/issues/611","repository_url":"https://api.github.com/repos/atom/apm","labels_url":"https://api.github.com/repos/atom/apm/issues/611/labels{/name}","comments_url":"https://api.github.com/repos/atom/apm/issues/611/comments","events_url":"https://api.github.com/repos/atom/apm/issues/611/events","html_url":"https://github.com/atom/apm/issues/611","id":179735065,"number":611,"title":"Cannot install packages behind proxy: \"tunneling socket could not be established, cause=socket hang up\"","user":{"login":"stmax82","id":6381927,"avatar_url":"https://avatars2.githubusercontent.com/u/6381927?v=3","gravatar_id":"","url":"https://api.github.com/users/stmax82","html_url":"https://github.com/stmax82","followers_url":"https://api.github.com/users/stmax82/followers","following_url":"https://api.github.com/users/stmax82/following{/other_user}","gists_url":"https://api.github.com/users/stmax82/gists{/gist_id}","starred_url":"https://api.github.com/users/stmax82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stmax82/subscriptions","organizations_url":"https://api.github.com/users/stmax82/orgs","repos_url":"https://api.github.com/users/stmax82/repos","events_url":"https://api.github.com/users/stmax82/events{/privacy}","received_events_url":"https://api.github.com/users/stmax82/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-28T10:24:45Z","updated_at":"2017-05-31T05:30:34Z","closed_at":null,"body":"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\"\n\n```\nC:\\Users\\john.doe>apm --version\napm  1.12.5\nnpm  3.10.5\nnode 4.4.5\npython 3.5.2\ngit 2.7.0.windows.1\nvisual studio 2013\n```\n\n```\nC:\\Users\\john.doe>apm config list\n; cli configs\nglobalconfig = \"C:\\\\Users\\\\john.doe\\\\.atom\\\\.apm\\\\.apmrc\"\nuser-agent = \"npm/3.10.5 node/v4.4.5 win32 ia32\"\nuserconfig = \"C:\\\\Users\\\\john.doe\\\\.atom\\\\.apmrc\"\n\n; environment configs\nnode-gyp = \"C:\\\\Users\\\\john.doe\\\\AppData\\\\Local\\\\atom\\\\app-1.10.2\\\\resources\\\\app\\\\apm\\\\bin\\\\\\\\..\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\"\n\n; userconfig C:\\Users\\john.doe\\.atom\\.apmrc\nhttp-proxy = \"http://www-proxy.company.com:8080\"\nhttps-proxy = \"https://www-proxy.company.com:8080/\"\nstrict-ssl = false\n\n; globalconfig C:\\Users\\john.doe\\.atom\\.apm\\.apmrc\ncache = \"C:\\\\Users\\\\john.doe\\\\.atom\\\\.apm\"\nprogress = false\n\n; node bin location = C:\\Users\\john.doe\\AppData\\Local\\atom\\app-1.10.2\\resources\\app\\apm\\bin\\node.exe\n; cwd = C:\\Users\\john.doe\n; HOME = C:\\Users\\john.doe\n; \"npm config ls -l\" to show all defaults.\n```\n\n```\nC:\\Users\\john.doe>apm install uber-juno --verbose\nInstalling uber-juno to C:\\Users\\john.doe\\.atom\\packages REQUEST { url: 'https://atom.io/api/packages/uber-juno',\n  json: true,\n  retries: 4,\n  proxy: 'https://www-proxy.company.com:8080/',\n  strictSSL: false,\n  headers: { 'User-Agent': 'npm/3.10.5 node/v4.4.5 win32 ia32' },\n  callback: [Function],\n  method: 'GET' }\nREQUEST make request https://atom.io/api/packages/uber-juno\nREQUEST { url: 'https://atom.io/api/packages/uber-juno',\n  json: true,\n  retries: 4,\n  proxy: 'https://www-proxy.company.com:8080/',\n  strictSSL: false,\n  headers: { 'User-Agent': 'npm/3.10.5 node/v4.4.5 win32 ia32' },\n  callback: [Function],\n  method: 'GET' }\nREQUEST make request https://atom.io/api/packages/uber-juno\nREQUEST { url: 'https://atom.io/api/packages/uber-juno',\n  json: true,\n  retries: 4,\n  proxy: 'https://www-proxy.company.com:8080/',\n  strictSSL: false,\n  headers: { 'User-Agent': 'npm/3.10.5 node/v4.4.5 win32 ia32' },\n  callback: [Function],\n  method: 'GET' }\nREQUEST make request https://atom.io/api/packages/uber-juno\nREQUEST { url: 'https://atom.io/api/packages/uber-juno',\n  json: true,\n  retries: 4,\n  proxy: 'https://www-proxy.company.com:8080/',\n  strictSSL: false,\n  headers: { 'User-Agent': 'npm/3.10.5 node/v4.4.5 win32 ia32' },\n  callback: [Function],\n  method: 'GET' }\nREQUEST make request https://atom.io/api/packages/uber-juno\nREQUEST { url: 'https://atom.io/api/packages/uber-juno',\n  json: true,\n  retries: 4,\n  proxy: 'https://www-proxy.company.com:8080/',\n  strictSSL: false,\n  headers: { 'User-Agent': 'npm/3.10.5 node/v4.4.5 win32 ia32' },\n  callback: [Function],\n  method: 'GET' }\nREQUEST make request https://atom.io/api/packages/uber-juno\nfailed\nRequest for package information failed: tunneling socket could not be established, cause=socket hang up (5 attempts) (ECONNRESET)\n```\n\nFor comparison - git works fine with the same proxy settings:\n\n```\nC:\\Users\\john.doe>git config --list\ncore.symlinks=false\ncore.autocrlf=false\ncolor.diff=auto\ncolor.status=auto\ncolor.branch=auto\ncolor.interactive=true\nhelp.format=html\nhttp.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt\ndiff.astextplain.textconv=astextplain\nrebase.autosquash=true\nuser.name=john.doe\nuser.email=john.doe@gmail.com\nhttp.proxy=http://john.doe:foobar1234!@www-proxy.company.com:8080\nhttp.sslverify=false\nhttps.proxy=https://john.doe:foobar1234!@www-proxy.company.com:8080\nhttps.sslverify=false\n```\n\n```\nC:\\Users\\john.doe>git clone https://github.com/Theano/Theano.git\nCloning into 'Theano'...\nremote: Counting objects: 138592, done.\nremote: Compressing objects: 100% (11/11), done.\nremote: Total 138592 (delta 4), reused 0 (delta 0), pack-reused 138581\nReceiving objects: 100% (138592/138592), 55.15 MiB | 1.09 MiB/s, done.\nResolving deltas: 100% (110189/110189), done.\nChecking connectivity... done.\n```\n"},"comment":{"url":"https://api.github.com/repos/atom/apm/issues/comments/305087483","html_url":"https://github.com/atom/apm/issues/611#issuecomment-305087483","issue_url":"https://api.github.com/repos/atom/apm/issues/611","id":305087483,"user":{"login":"RishiKulshreshtha","id":973783,"avatar_url":"https://avatars3.githubusercontent.com/u/973783?v=3","gravatar_id":"","url":"https://api.github.com/users/RishiKulshreshtha","html_url":"https://github.com/RishiKulshreshtha","followers_url":"https://api.github.com/users/RishiKulshreshtha/followers","following_url":"https://api.github.com/users/RishiKulshreshtha/following{/other_user}","gists_url":"https://api.github.com/users/RishiKulshreshtha/gists{/gist_id}","starred_url":"https://api.github.com/users/RishiKulshreshtha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RishiKulshreshtha/subscriptions","organizations_url":"https://api.github.com/users/RishiKulshreshtha/orgs","repos_url":"https://api.github.com/users/RishiKulshreshtha/repos","events_url":"https://api.github.com/users/RishiKulshreshtha/events{/privacy}","received_events_url":"https://api.github.com/users/RishiKulshreshtha/received_events","type":"User","site_admin":false},"created_at":"2017-05-31T05:30:34Z","updated_at":"2017-05-31T05:30:34Z","body":"I've simply added this and worked like charm!\r\n`apm config set proxy http://localhost:3128`\r\n\r\nWhere I've replaced my `Proxy IP` provided by the organisation instead of `localhost`. Currently using macOS Sierra"}}
{"actor":{"display_login":"RishiKulshreshtha"}}