{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/5913","repository_url":"https://api.github.com/repos/atom/atom","labels_url":"https://api.github.com/repos/atom/atom/issues/5913/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/5913/comments","events_url":"https://api.github.com/repos/atom/atom/issues/5913/events","html_url":"https://github.com/atom/atom/issues/5913","id":60457071,"number":5913,"title":"Cannot install or update any packages with 0.186.0 under Windows using proxy","user":{"login":"weblogixx","id":757613,"avatar_url":"https://avatars.githubusercontent.com/u/757613?v=3","gravatar_id":"","url":"https://api.github.com/users/weblogixx","html_url":"https://github.com/weblogixx","followers_url":"https://api.github.com/users/weblogixx/followers","following_url":"https://api.github.com/users/weblogixx/following{/other_user}","gists_url":"https://api.github.com/users/weblogixx/gists{/gist_id}","starred_url":"https://api.github.com/users/weblogixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weblogixx/subscriptions","organizations_url":"https://api.github.com/users/weblogixx/orgs","repos_url":"https://api.github.com/users/weblogixx/repos","events_url":"https://api.github.com/users/weblogixx/events{/privacy}","received_events_url":"https://api.github.com/users/weblogixx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/network","name":"network","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-03-10T06:30:37Z","updated_at":"2016-04-23T18:09:44Z","closed_at":"2016-04-23T18:09:44Z","body":"Hi all,\r\n\r\nI have a problem installing and updating packages in the current Atom for Windows release.\r\nThere seems to be a problem running apm that seems to have been around for some time now (as it did work with the same settings before 0.180). My local node-Setup is just working fine with the same settings and toolchain, so that should not be the problem. It does not seem to be a general proxy problem as I can see available themes and packages, as well as updates in Atom.\r\n\r\nMy current setup / Toolchain (with proxy and username obusfacated):\r\n```\r\nWindows 7 (64 bit)\r\n\r\nC:\\Windows\\system32>apm -v\r\napm  0.142.0\r\nnpm  2.5.1\r\nnode 0.10.35\r\npython 2.7.9\r\ngit 1.9.4.msysgit.2\r\nvisual studio 2013\r\n\r\nC:\\Windows\\system32>apm config list\r\n; cli configs\r\nglobalconfig = \"C:\\\\Users\\\\myuser\\\\.atom\\\\.apm\\\\.apmrc\"\r\nuser-agent = \"npm/2.5.1 node/v0.10.35 win32 ia32\"\r\nuserconfig = \"C:\\\\Users\\\\myuser\\\\.atom\\\\.apmrc\"\r\n\r\n; userconfig C:\\Users\\myuser\\.atom\\.apmrc\r\nhttp-proxy = \"http://proxy.company.com:8080\"\r\nhttps-proxy = \"http://proxy.company.com:8080/\"\r\n\r\n; globalconfig C:\\Users\\christian.schilling\\.atom\\.apm\\.apmrc\r\ncache = \"C:\\\\Users\\\\myuser\\\\.atom\\\\.apm\"\r\n\r\n; node bin location = c:\\Users\\myuser\\AppData\\Local\\atom\\app-0.186.0\\resources\\app\\apm\\bin\\node.exe\r\n; cwd = C:\\Windows\\system32\r\n; HOME = C:\\Users\\myuser\r\n; 'npm config ls -l' to show all defaults.\r\n```\r\n\r\nWhen I try to update or install packages I get the following error (even running a privileged cmd):\r\n```\r\nC:\\Windows\\system32>apm update\r\nPackage Updates Available (2)\r\n├── docblockr 0.5.8 -> 0.6.3\r\n└── minimap 4.1.3 -> 4.5.0\r\n\r\nWould you like to install these updates? (yes)\r\n\r\nInstalling docblockr@0.6.3 to C:\\Users\\USERNAME\\.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 | win32 | ia32\r\ngyp http GET https://atom.io/download/atom-shell/v0.21.0/node-v0.21.0.tar.gz\r\ngyp WARN install got an error, rolling back install\r\ngyp\r\n```\r\n\r\nWhen using the gui, I get the \"Compiler tools not found\" error:\r\n```\r\nC:\\Windows\\system32>apm install --check\r\nChecking for native build tools failed\r\n\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 | win32 | ia32\r\ngyp http GET https://atom.io/download/atom-shell/v0.21.0/node-v0.21.0.tar.gz\r\ngyp WARN install got an error, rolling back install\r\ngyp\r\n```\r\n\r\nAfter this try I ran:\r\n```\r\napm install --verbose\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 | win32 | ia32\r\ngyp http GET https://atom.io/download/atom-shell/v0.21.0/node-v0.21.0.tar.gz\r\nREQUEST { proxy: 'http://proxy.company.com:8080/',\r\n  headers: { 'User-Agent': 'node-gyp v1.0.2 (node v0.10.35)' },\r\n  uri: 'https://atom.io/download/atom-shell/v0.21.0/node-v0.21.0.tar.gz',\r\n  callback: undefined }\r\nREQUEST make request https://atom.io/download/atom-shell/v0.21.0/node-v0.21.0.tar.gz\r\nREQUEST onRequestResponse https://atom.io/download/atom-shell/v0.21.0/node-v0.21.0.tar.gz 302 { server: 'Cowboy',\r\n  date: 'Tue, 10 Mar 2015 06:25:07 GMT',\r\n  connection: 'keep-alive',\r\n  'strict-transport-security': 'max-age=631152000',\r\n  'x-frame-options': 'DENY',\r\n  'x-xss-protection': '1; mode=block',\r\n  'x-content-type-options': 'nosniff',\r\n  'content-security-policy': 'default-src \\'self\\'; connect-src \\'self\\'; font-src \\'self\\'; frame-src \\'self\\'; img-src https://* \\'self\\' data:; media-src \\'none\\'; object-src \\'self\\'; script-src \\\r\n'self\\' \\'unsafe-inline\\' https://ssl.google-analytics.com https://www.google-analytics.com; style-src \\'self\\' \\'unsafe-inline\\';',\r\n  location: 'http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.21.0/node-v0.21.0.tar.gz',\r\n  'content-type': 'text/html; charset=utf-8',\r\n  'cache-control': 'no-cache',\r\n  'set-cookie': [ 'request_method=GET; path=/; secure' ],\r\n  'x-request-id': 'e20b681a-e86f-43f9-87c5-b15c6359e2cd',\r\n  'x-runtime': '0.017689',\r\n  'transfer-encoding': 'chunked',\r\n  via: '1.1 vegur' }\r\nREQUEST redirect http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.21.0/node-v0.21.0.tar.gz\r\nREQUEST redirect to http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.21.0/node-v0.21.0.tar.gz\r\nREQUEST {}\r\nREQUEST response end http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.21.0/node-v0.21.0.tar.gz 302 { server: 'Cowboy',\r\n  date: 'Tue, 10 Mar 2015 06:25:07 GMT',\r\n  connection: 'keep-alive',\r\n  'strict-transport-security': 'max-age=631152000',\r\n  'x-frame-options': 'DENY',\r\n  'x-xss-protection': '1; mode=block',\r\n  'x-content-type-options': 'nosniff',\r\n  'content-security-policy': 'default-src \\'self\\'; connect-src \\'self\\'; font-src \\'self\\'; frame-src \\'self\\'; img-src https://* \\'self\\' data:; media-src \\'none\\'; object-src \\'self\\'; script-src \\\r\n'self\\' \\'unsafe-inline\\' https://ssl.google-analytics.com https://www.google-analytics.com; style-src \\'self\\' \\'unsafe-inline\\';',\r\n  location: 'http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.21.0/node-v0.21.0.tar.gz',\r\n  'content-type': 'text/html; charset=utf-8',\r\n  'cache-control': 'no-cache',\r\n  'set-cookie': [ 'request_method=GET; path=/; secure' ],\r\n  'x-request-id': 'e20b681a-e86f-43f9-87c5-b15c6359e2cd',\r\n  'x-runtime': '0.017689',\r\n  'transfer-encoding': 'chunked',\r\n  via: '1.1 vegur' }\r\nREQUEST make request http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.21.0/node-v0.21.0.tar.gz\r\ngyp WARN install got an error, rolling back install\r\ngyp\r\n```\r\n\r\nThe same last request line can also be found when trying to update. Interestingly the packages I want to update seem to be downloadable:\r\n```\r\nREQUEST onRequestResponse https://codeload.github.com/NikhilKalige/docblockr/legacy.tar.gz/v0.6.3 200 { 'content-length': '531353',\r\n  'access-control-allow-origin': 'https://render.githubusercontent.com',\r\n  'content-security-policy': 'default-src \\'none\\'',\r\n  'x-xss-protection': '1; mode=block',\r\n  'x-frame-options': 'deny',\r\n  'x-content-type-options': 'nosniff',\r\n  'strict-transport-security': 'max-age=31536000',\r\n  vary: 'Authorization,Accept-Encoding',\r\n  etag: '\"12459b3f72507c12b6258f9bd550553fc6f43476\"',\r\n  'content-type': 'application/x-gzip',\r\n  'content-disposition': 'attachment; filename=NikhilKalige-docblockr-v0.6.3-0-g12459b3.tar.gz',\r\n  date: 'Tue, 10 Mar 2015 06:26:26 GMT' }\r\nREQUEST finish init function https://codeload.github.com/NikhilKalige/docblockr/legacy.tar.gz/v0.6.3\r\nREQUEST response end https://codeload.github.com/NikhilKalige/docblockr/legacy.tar.gz/v0.6.3 200 { 'content-length': '531353',\r\n  'access-control-allow-origin': 'https://render.githubusercontent.com',\r\n  'content-security-policy': 'default-src \\'none\\'',\r\n  'x-xss-protection': '1; mode=block',\r\n  'x-frame-options': 'deny',\r\n  'x-content-type-options': 'nosniff',\r\n  'strict-transport-security': 'max-age=31536000',\r\n  vary: 'Authorization,Accept-Encoding',\r\n  etag: '\"12459b3f72507c12b6258f9bd550553fc6f43476\"',\r\n  'content-type': 'application/x-gzip',\r\n  'content-disposition': 'attachment; filename=NikhilKalige-docblockr-v0.6.3-0-g12459b3.tar.gz',\r\n  date: 'Tue, 10 Mar 2015 06:26:26 GMT' }\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 | win32 | ia32\r\ngyp http GET https://atom.io/download/atom-shell/v0.21.0/node-v0.21.0.tar.gz\r\nREQUEST { proxy: 'http://proxy.company.com:8080/',\r\n  headers: { 'User-Agent': 'node-gyp v1.0.2 (node v0.10.35)' },\r\n  uri: 'https://atom.io/download/atom-shell/v0.21.0/node-v0.21.0.tar.gz',\r\n  callback: undefined }\r\nREQUEST make request https://atom.io/download/atom-shell/v0.21.0/node-v0.21.0.tar.gz\r\nREQUEST onRequestResponse https://atom.io/download/atom-shell/v0.21.0/node-v0.21.0.tar.gz 302 { server: 'Cowboy',\r\n  date: 'Tue, 10 Mar 2015 06:26:27 GMT',\r\n  connection: 'keep-alive',\r\n  'strict-transport-security': 'max-age=631152000',\r\n  'x-frame-options': 'DENY',\r\n  'x-xss-protection': '1; mode=block',\r\n  'x-content-type-options': 'nosniff',\r\n  'content-security-policy': 'default-src \\'self\\'; connect-src \\'self\\'; font-src \\'self\\'; frame-src \\'self\\'; img-src https://* \\'self\\' data:; media-src \\'none\\'; object-src \\'self\\'; script-src \\\r\n'self\\' \\'unsafe-inline\\' https://ssl.google-analytics.com https://www.google-analytics.com; style-src \\'self\\' \\'unsafe-inline\\';',\r\n  location: 'http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.21.0/node-v0.21.0.tar.gz',\r\n  'content-type': 'text/html; charset=utf-8',\r\n  'cache-control': 'no-cache',\r\n  'set-cookie': [ 'request_method=GET; path=/; secure' ],\r\n  'x-request-id': '81ca1402-fd67-4da2-bb76-7b12876e4768',\r\n  'x-runtime': '0.013935',\r\n  'transfer-encoding': 'chunked',\r\n  via: '1.1 vegur' }\r\nREQUEST redirect http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.21.0/node-v0.21.0.tar.gz\r\nREQUEST redirect to http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.21.0/node-v0.21.0.tar.gz\r\nREQUEST {}\r\nREQUEST response end http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.21.0/node-v0.21.0.tar.gz 302 { server: 'Cowboy',\r\n  date: 'Tue, 10 Mar 2015 06:26:27 GMT',\r\n  connection: 'keep-alive',\r\n  'strict-transport-security': 'max-age=631152000',\r\n  'x-frame-options': 'DENY',\r\n  'x-xss-protection': '1; mode=block',\r\n  'x-content-type-options': 'nosniff',\r\n  'content-security-policy': 'default-src \\'self\\'; connect-src \\'self\\'; font-src \\'self\\'; frame-src \\'self\\'; img-src https://* \\'self\\' data:; media-src \\'none\\'; object-src \\'self\\'; script-src \\\r\n'self\\' \\'unsafe-inline\\' https://ssl.google-analytics.com https://www.google-analytics.com; style-src \\'self\\' \\'unsafe-inline\\';',\r\n  location: 'http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.21.0/node-v0.21.0.tar.gz',\r\n  'content-type': 'text/html; charset=utf-8',\r\n  'cache-control': 'no-cache',\r\n  'set-cookie': [ 'request_method=GET; path=/; secure' ],\r\n  'x-request-id': '81ca1402-fd67-4da2-bb76-7b12876e4768',\r\n  'x-runtime': '0.013935',\r\n  'transfer-encoding': 'chunked',\r\n  via: '1.1 vegur' }\r\nREQUEST make request http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.21.0/node-v0.21.0.tar.gz\r\ngyp WARN install got an error, rolling back install\r\ngyp\r\n```\r\n\r\nIt seems like atom-shell is not fetchable over the proxy... Is there a way to work around this? Atom-Shells http response code is 302 (which is a location redirect). The location object (as seen in the last line) is the same as the original request uri...\r\n\r\nAs I am not allowed to do something on the proxy (Squid) I hope there is a workaround for this kind of problems.\r\n\r\nBest regards,\r\nChristian"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/213798610","html_url":"https://github.com/atom/atom/issues/5913#issuecomment-213798610","issue_url":"https://api.github.com/repos/atom/atom/issues/5913","id":213798610,"user":{"login":"damieng","id":118951,"avatar_url":"https://avatars.githubusercontent.com/u/118951?v=3","gravatar_id":"","url":"https://api.github.com/users/damieng","html_url":"https://github.com/damieng","followers_url":"https://api.github.com/users/damieng/followers","following_url":"https://api.github.com/users/damieng/following{/other_user}","gists_url":"https://api.github.com/users/damieng/gists{/gist_id}","starred_url":"https://api.github.com/users/damieng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damieng/subscriptions","organizations_url":"https://api.github.com/users/damieng/orgs","repos_url":"https://api.github.com/users/damieng/repos","events_url":"https://api.github.com/users/damieng/events{/privacy}","received_events_url":"https://api.github.com/users/damieng/received_events","type":"User","site_admin":false},"created_at":"2016-04-23T18:09:44Z","updated_at":"2016-04-23T18:09:44Z","body":"Looks like this was fixed by atom/apm#322 so closing here. Please re-open or re-file if you still experience issues."}}