{"action":"created","issue":{"url":"https://api.github.com/repos/fent/node-miniget/issues/2","repository_url":"https://api.github.com/repos/fent/node-miniget","labels_url":"https://api.github.com/repos/fent/node-miniget/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/fent/node-miniget/issues/2/comments","events_url":"https://api.github.com/repos/fent/node-miniget/issues/2/events","html_url":"https://github.com/fent/node-miniget/issues/2","id":256544429,"number":2,"title":"Randomly get this","user":{"login":"DiscordDonut","id":17531996,"avatar_url":"https://avatars0.githubusercontent.com/u/17531996?v=4","gravatar_id":"","url":"https://api.github.com/users/DiscordDonut","html_url":"https://github.com/DiscordDonut","followers_url":"https://api.github.com/users/DiscordDonut/followers","following_url":"https://api.github.com/users/DiscordDonut/following{/other_user}","gists_url":"https://api.github.com/users/DiscordDonut/gists{/gist_id}","starred_url":"https://api.github.com/users/DiscordDonut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiscordDonut/subscriptions","organizations_url":"https://api.github.com/users/DiscordDonut/orgs","repos_url":"https://api.github.com/users/DiscordDonut/repos","events_url":"https://api.github.com/users/DiscordDonut/events{/privacy}","received_events_url":"https://api.github.com/users/DiscordDonut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-10T22:14:35Z","updated_at":"2017-09-12T01:16:00Z","closed_at":null,"author_association":"NONE","body":"```\r\nError: Status code: 403\r\n    at ClientRequest.<anonymous> (/root/node_modules/miniget/lib/index.js:65:17)\r\n    at Object.onceWrapper (events.js:316:30)\r\n    at emitOne (events.js:115:13)\r\n    at ClientRequest.emit (events.js:210:7)\r\n    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:565:21)\r\n    at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)\r\n    at TLSSocket.socketOnData (_http_client.js:454:20)\r\n    at emitOne (events.js:115:13)\r\n    at TLSSocket.emit (events.js:210:7)\r\n    at addChunk (_stream_readable.js:266:12)\r\n    at readableAddChunk (_stream_readable.js:253:11)\r\n    at TLSSocket.Readable.push (_stream_readable.js:211:10)\r\n    at TLSWrap.onread (net.js:585:20)\r\n```\r\n\r\nThis gets a return then crashes my application while just playing music. Nothing triggered this to happened, this just happens randomly"},"comment":{"url":"https://api.github.com/repos/fent/node-miniget/issues/comments/328702639","html_url":"https://github.com/fent/node-miniget/issues/2#issuecomment-328702639","issue_url":"https://api.github.com/repos/fent/node-miniget/issues/2","id":328702639,"user":{"login":"fent","id":933490,"avatar_url":"https://avatars0.githubusercontent.com/u/933490?v=4","gravatar_id":"","url":"https://api.github.com/users/fent","html_url":"https://github.com/fent","followers_url":"https://api.github.com/users/fent/followers","following_url":"https://api.github.com/users/fent/following{/other_user}","gists_url":"https://api.github.com/users/fent/gists{/gist_id}","starred_url":"https://api.github.com/users/fent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fent/subscriptions","organizations_url":"https://api.github.com/users/fent/orgs","repos_url":"https://api.github.com/users/fent/repos","events_url":"https://api.github.com/users/fent/events{/privacy}","received_events_url":"https://api.github.com/users/fent/received_events","type":"User","site_admin":false},"created_at":"2017-09-12T01:16:00Z","updated_at":"2017-09-12T01:16:00Z","author_association":"OWNER","body":"If this happens primarily in ytdl-core, this issue is more related to how ytdl-core makes the request, not this module.\r\n\r\nYou can catch the error by adding an `error` listener to the stream that `ytdl()` returns.\r\n\r\n```js\r\nlet stream  = ytdl(url);\r\nstream.on('error', (err) => {\r\n  // do something with `err`\r\n});\r\n```"}}
{"actor":{"display_login":"fent"}}