{"action":"created","issue":{"url":"https://api.github.com/repos/wzhouwzhou/ytsearcher/issues/2","repository_url":"https://api.github.com/repos/wzhouwzhou/ytsearcher","labels_url":"https://api.github.com/repos/wzhouwzhou/ytsearcher/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/wzhouwzhou/ytsearcher/issues/2/comments","events_url":"https://api.github.com/repos/wzhouwzhou/ytsearcher/issues/2/events","html_url":"https://github.com/wzhouwzhou/ytsearcher/issues/2","id":350692590,"node_id":"MDU6SXNzdWUzNTA2OTI1OTA=","number":2,"title":"Crashing Silently [Exit Status 1]","user":{"login":"BannerBomb","id":11788894,"node_id":"MDQ6VXNlcjExNzg4ODk0","avatar_url":"https://avatars0.githubusercontent.com/u/11788894?v=4","gravatar_id":"","url":"https://api.github.com/users/BannerBomb","html_url":"https://github.com/BannerBomb","followers_url":"https://api.github.com/users/BannerBomb/followers","following_url":"https://api.github.com/users/BannerBomb/following{/other_user}","gists_url":"https://api.github.com/users/BannerBomb/gists{/gist_id}","starred_url":"https://api.github.com/users/BannerBomb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BannerBomb/subscriptions","organizations_url":"https://api.github.com/users/BannerBomb/orgs","repos_url":"https://api.github.com/users/BannerBomb/repos","events_url":"https://api.github.com/users/BannerBomb/events{/privacy}","received_events_url":"https://api.github.com/users/BannerBomb/received_events","type":"User","site_admin":false},"labels":[{"id":644140220,"node_id":"MDU6TGFiZWw2NDQxNDAyMjA=","url":"https://api.github.com/repos/wzhouwzhou/ytsearcher/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-08-15T05:43:58Z","updated_at":"2018-08-16T00:13:37Z","closed_at":null,"author_association":"NONE","body":"I been messing with the package because I use it for my discord bot and before updating the package it didn't crash. my command I used it for gets information from a youtube video/current streaming video and it worked until I updated the package. So I decided to mess with the package to see if I can find what part was causing it to crash and anytime you call `publishedAt` or just `[var].first` it crashes silently with a exit status 1. Here is a code sample I was working with to test maybe it will help explain better than me.\r\n```\r\nconst { YTSearcher } = require('ytsearcher');\r\nconst search = new YTSearcher({\r\n\tkey: process.env.YOUTUBE_API_KEY,\r\n\trevealkey: true\r\n});\r\nsearch.search(\"https://www.youtube.com/watch?v=FVovq9TGBw0\", { type: 'video' }).then(searchResult => {\r\n\tlet result = searchResult.first;\r\n\tconsole.log(result.id); // This works just fine\r\n\tconsole.log(result.url); // This works just fine\r\n\tconsole.log(result.publishedAt); // this crashes silently\r\n\tconsole.log(result); // this will also crash silently\r\n}).catch(err => console.error(`ERROR CATCH: ${err.toString()}`));\r\n```"},"comment":{"url":"https://api.github.com/repos/wzhouwzhou/ytsearcher/issues/comments/413379761","html_url":"https://github.com/wzhouwzhou/ytsearcher/issues/2#issuecomment-413379761","issue_url":"https://api.github.com/repos/wzhouwzhou/ytsearcher/issues/2","id":413379761,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzM3OTc2MQ==","user":{"login":"wzhouwzhou","id":19215788,"node_id":"MDQ6VXNlcjE5MjE1Nzg4","avatar_url":"https://avatars2.githubusercontent.com/u/19215788?v=4","gravatar_id":"","url":"https://api.github.com/users/wzhouwzhou","html_url":"https://github.com/wzhouwzhou","followers_url":"https://api.github.com/users/wzhouwzhou/followers","following_url":"https://api.github.com/users/wzhouwzhou/following{/other_user}","gists_url":"https://api.github.com/users/wzhouwzhou/gists{/gist_id}","starred_url":"https://api.github.com/users/wzhouwzhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wzhouwzhou/subscriptions","organizations_url":"https://api.github.com/users/wzhouwzhou/orgs","repos_url":"https://api.github.com/users/wzhouwzhou/repos","events_url":"https://api.github.com/users/wzhouwzhou/events{/privacy}","received_events_url":"https://api.github.com/users/wzhouwzhou/received_events","type":"User","site_admin":false},"created_at":"2018-08-16T00:13:37Z","updated_at":"2018-08-16T00:13:37Z","author_association":"OWNER","body":"Have you tried to run the test file directly outside of your bot with node without compiling? "}}
{"actor":{"display_login":"wzhouwzhou"}}