{"action":"created","issue":{"url":"https://api.github.com/repos/rxaviers/cldr-data-downloader/issues/33","repository_url":"https://api.github.com/repos/rxaviers/cldr-data-downloader","labels_url":"https://api.github.com/repos/rxaviers/cldr-data-downloader/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/rxaviers/cldr-data-downloader/issues/33/comments","events_url":"https://api.github.com/repos/rxaviers/cldr-data-downloader/issues/33/events","html_url":"https://github.com/rxaviers/cldr-data-downloader/issues/33","id":319754756,"node_id":"MDU6SXNzdWUzMTk3NTQ3NTY=","number":33,"title":"Downloading during install stage of `cldr-data` fails","user":{"login":"jvivs","id":749210,"node_id":"MDQ6VXNlcjc0OTIxMA==","avatar_url":"https://avatars1.githubusercontent.com/u/749210?v=4","gravatar_id":"","url":"https://api.github.com/users/jvivs","html_url":"https://github.com/jvivs","followers_url":"https://api.github.com/users/jvivs/followers","following_url":"https://api.github.com/users/jvivs/following{/other_user}","gists_url":"https://api.github.com/users/jvivs/gists{/gist_id}","starred_url":"https://api.github.com/users/jvivs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvivs/subscriptions","organizations_url":"https://api.github.com/users/jvivs/orgs","repos_url":"https://api.github.com/users/jvivs/repos","events_url":"https://api.github.com/users/jvivs/events{/privacy}","received_events_url":"https://api.github.com/users/jvivs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-03T00:26:06Z","updated_at":"2018-06-28T11:33:19Z","closed_at":null,"author_association":"NONE","body":"Having difficulty successfully installing the `cldr-data` package and its raising the following error from `cldr-data-downloader`:\r\n\r\n```\r\nExit code: 1\r\nCommand: sh\r\nArguments: -c node install.js\r\n/some/path/on/my/filesystem/node_modules/cldr-data\r\nOutput:\r\nGET `https://github.com/unicode-cldr/cldr-core/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-dates-modern/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-cal-buddhist-modern/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-cal-chinese-modern/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-cal-coptic-modern/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-cal-dangi-modern/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-cal-ethiopic-modern/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-cal-hebrew-modern/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-cal-indian-modern/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-cal-islamic-modern/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-cal-japanese-modern/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-cal-persian-modern/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-cal-roc-modern/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-localenames-modern/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-misc-modern/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-numbers-modern/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-segments-modern/archive/31.0.1.zip`\r\nGET `https://github.com/unicode-cldr/cldr-units-modern/archive/31.0.1.zip`\r\n/some/path/on/my/filesystem/node_modules/cldr-data-downloader/lib/download.js:119\r\n      throw error;\r\n      ^\r\n\r\nError: connect ETIMEDOUT 192.30.255.112:443\r\n    at Object._errnoException (util.js:1022:11)\r\n    at _exceptionWithHostPort (util.js:1044:20)\r\n    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)\".\r\n```\r\n\r\nPlatform information:\r\nmacOS 10.12.6\r\n`cldr-data@31.0.1`\r\n`cldr-data-downloader@0.3.2`\r\n`node@8.9.4`\r\n`npm@5.6.0`\r\n`yarn@1.5.1`\r\n\r\nI have run into this issue with the downloader in the past, but it has been chugging along for the past ~6mos or so without much of a hiccup until today. My success rate today is ~5%.\r\n\r\nWhen I try to download what seems to be the offending `cldr` zip (https://github.com/unicode-cldr/cldr-units-modern/archive/31.0.1.zip), the browser completes the download just fine.\r\n\r\nI've done a bit of digging around in both `cldr-data-downloader` and `request` to try and get a better picture of what's going on. Investigation shows that request appears to be getting a 200, closing the connection, and emitting the `complete` event, but the downloader still does not not finish successfully:\r\n\r\n(end of output `NODE_DEBUG=request npm run install` from inside `node_modules/cldr-data`)\r\n```\r\nREQUEST response end https://codeload.github.com/unicode-cldr/cldr-numbers-modern/zip/31.0.1 200 { 'content-length': '3629675',\r\n  'access-control-allow-origin': 'https://render.githubusercontent.com',\r\n  'content-security-policy': 'default-src \\'none\\'; style-src \\'unsafe-inline\\'; sandbox',\r\n  'strict-transport-security': 'max-age=31536000',\r\n  vary: 'Authorization,Accept-Encoding',\r\n  'x-content-type-options': 'nosniff',\r\n  'x-frame-options': 'deny',\r\n  'x-xss-protection': '1; mode=block',\r\n  etag: '\"39f1f5bac2fa7a22fd33636ad4d6f1b179c61cd5\"',\r\n  'content-type': 'application/zip',\r\n  'content-disposition': 'attachment; filename=cldr-numbers-modern-31.0.1.zip',\r\n  'x-geo-block-list': '',\r\n  date: 'Wed, 02 May 2018 23:16:18 GMT',\r\n  'x-github-request-id': 'F304:5639:18A56:27D35:5AEA46C2',\r\n  connection: 'close' }\r\nREQUEST end event https://codeload.github.com/unicode-cldr/cldr-numbers-modern/zip/31.0.1\r\nREQUEST has body https://codeload.github.com/unicode-cldr/cldr-numbers-modern/zip/31.0.1 3629675\r\nREQUEST emitting complete https://codeload.github.com/unicode-cldr/cldr-numbers-modern/zip/31.0.1\r\n  [----------------------------------------] 29012347/Infinity 0% 0.0s^C\r\n```\r\n\r\nI also get the above result when attempting to install or upgrade a dependency with `yarn`, bootstrapping with `lerna` (using `yarn` + workspaces under the hood), or installing with `npm`.\r\n\r\nOne thing that does seem to stick out to me is that the final bytes counted by `request-progress` may don't seem to be accurate or indicative of a successful download or not.\r\n\r\nDoes this jog anyone's memory?"},"comment":{"url":"https://api.github.com/repos/rxaviers/cldr-data-downloader/issues/comments/401004626","html_url":"https://github.com/rxaviers/cldr-data-downloader/issues/33#issuecomment-401004626","issue_url":"https://api.github.com/repos/rxaviers/cldr-data-downloader/issues/33","id":401004626,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTAwNDYyNg==","user":{"login":"RedRelay","id":2145682,"node_id":"MDQ6VXNlcjIxNDU2ODI=","avatar_url":"https://avatars3.githubusercontent.com/u/2145682?v=4","gravatar_id":"","url":"https://api.github.com/users/RedRelay","html_url":"https://github.com/RedRelay","followers_url":"https://api.github.com/users/RedRelay/followers","following_url":"https://api.github.com/users/RedRelay/following{/other_user}","gists_url":"https://api.github.com/users/RedRelay/gists{/gist_id}","starred_url":"https://api.github.com/users/RedRelay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedRelay/subscriptions","organizations_url":"https://api.github.com/users/RedRelay/orgs","repos_url":"https://api.github.com/users/RedRelay/repos","events_url":"https://api.github.com/users/RedRelay/events{/privacy}","received_events_url":"https://api.github.com/users/RedRelay/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T11:33:19Z","updated_at":"2018-06-28T11:33:19Z","author_association":"NONE","body":"I get the same error.\r\nYour librairy is embedded into the new ecommerce storefront boilerplate from Salesforce.\r\nAnd a lot of user will be in trouble with this issue :/"}}
{"actor":{"display_login":"RedRelay"}}