{"action":"created","issue":{"url":"https://api.github.com/repos/JimmyBoh/pully/issues/5","labels_url":"https://api.github.com/repos/JimmyBoh/pully/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/JimmyBoh/pully/issues/5/comments","events_url":"https://api.github.com/repos/JimmyBoh/pully/issues/5/events","html_url":"https://github.com/JimmyBoh/pully/issues/5","id":120550156,"number":5,"title":"cli crashes in node-progress","user":{"login":"clux","id":134092,"avatar_url":"https://avatars.githubusercontent.com/u/134092?v=3","gravatar_id":"","url":"https://api.github.com/users/clux","html_url":"https://github.com/clux","followers_url":"https://api.github.com/users/clux/followers","following_url":"https://api.github.com/users/clux/following{/other_user}","gists_url":"https://api.github.com/users/clux/gists{/gist_id}","starred_url":"https://api.github.com/users/clux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clux/subscriptions","organizations_url":"https://api.github.com/users/clux/orgs","repos_url":"https://api.github.com/users/clux/repos","events_url":"https://api.github.com/users/clux/events{/privacy}","received_events_url":"https://api.github.com/users/clux/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JimmyBoh/pully/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-05T12:11:58Z","updated_at":"2015-12-25T18:17:54Z","closed_at":null,"body":"Tried `pully https://www.youtube.com/watch?v=gEdc27Iz8zA`\r\nAnd a variety of others to make sure, but they all crash with this output atm:\r\n\r\n```\r\n/home/clux/local/node-v5.1.0/lib/node_modules/pully/node_modules/progress/lib/node-progress.js:131\r\n  complete = Array(completeLength + 1).join(this.chars.complete);\r\n             ^\r\n\r\nRangeError: Invalid array length\r\n    at ProgressBar.render (/home/clux/local/node-v5.1.0/lib/node_modules/pully/node_modules/progress/lib/node-progress.js:131:14)\r\n    at ProgressBar.tick (/home/clux/local/node-v5.1.0/lib/node_modules/pully/node_modules/progress/lib/node-progress.js:86:8)\r\n    at PassThrough.<anonymous> (/home/clux/local/node-v5.1.0/lib/node_modules/pully/lib/downloader.js:142:15)\r\n    at emitOne (events.js:82:20)\r\n    at PassThrough.emit (events.js:169:7)\r\n    at readableAddChunk (_stream_readable.js:146:16)\r\n    at PassThrough.Readable.push (_stream_readable.js:110:10)\r\n    at PassThrough.Transform.push (_stream_transform.js:128:32)\r\n    at afterTransform (_stream_transform.js:76:12)\r\n    at TransformState.afterTransform (_stream_transform.js:54:12)\r\n```\r\n\r\nnode@5.1.0 and npm@3.5.0"},"comment":{"url":"https://api.github.com/repos/JimmyBoh/pully/issues/comments/167256212","html_url":"https://github.com/JimmyBoh/pully/issues/5#issuecomment-167256212","issue_url":"https://api.github.com/repos/JimmyBoh/pully/issues/5","id":167256212,"user":{"login":"alexbinary","id":3055394,"avatar_url":"https://avatars.githubusercontent.com/u/3055394?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbinary","html_url":"https://github.com/alexbinary","followers_url":"https://api.github.com/users/alexbinary/followers","following_url":"https://api.github.com/users/alexbinary/following{/other_user}","gists_url":"https://api.github.com/users/alexbinary/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbinary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbinary/subscriptions","organizations_url":"https://api.github.com/users/alexbinary/orgs","repos_url":"https://api.github.com/users/alexbinary/repos","events_url":"https://api.github.com/users/alexbinary/events{/privacy}","received_events_url":"https://api.github.com/users/alexbinary/received_events","type":"User","site_admin":false},"created_at":"2015-12-25T18:17:54Z","updated_at":"2015-12-25T18:17:54Z","body":"Hi,\r\nI investigated the problem and here are my conclusions :\r\n\r\ncrash occurs at https://github.com/tj/node-progress/blob/1.1.8/lib/node-progress.js#L131\r\n-> [node-progress] because `completeLength` is `NaN`.\r\n-> [node-progress] because `ratio` is `NaN` (https://github.com/tj/node-progress/blob/1.1.8/lib/node-progress.js#L109)\r\n-> [node-progress] because `this.total` is `NaN`\r\n-> [node-progress] because `options.total` is `Nan` (https://github.com/tj/node-progress/blob/1.1.8/lib/node-progress.js#L56)\r\n=> [pully] because `streamFormat.size` is `undefined` (https://github.com/JimmyBoh/pully/blob/master/lib/downloader.js#L110, even before it goes into `parseInt`)"}}