{"action":"created","issue":{"url":"https://api.github.com/repos/GamingAnonymous/TornCityAPISharp/issues/3","repository_url":"https://api.github.com/repos/GamingAnonymous/TornCityAPISharp","labels_url":"https://api.github.com/repos/GamingAnonymous/TornCityAPISharp/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/GamingAnonymous/TornCityAPISharp/issues/3/comments","events_url":"https://api.github.com/repos/GamingAnonymous/TornCityAPISharp/issues/3/events","html_url":"https://github.com/GamingAnonymous/TornCityAPISharp/issues/3","id":197626877,"number":3,"title":"Getting Player Stats Causes Exception","user":{"login":"GamingAnonymous","id":11426121,"avatar_url":"https://avatars.githubusercontent.com/u/11426121?v=3","gravatar_id":"","url":"https://api.github.com/users/GamingAnonymous","html_url":"https://github.com/GamingAnonymous","followers_url":"https://api.github.com/users/GamingAnonymous/followers","following_url":"https://api.github.com/users/GamingAnonymous/following{/other_user}","gists_url":"https://api.github.com/users/GamingAnonymous/gists{/gist_id}","starred_url":"https://api.github.com/users/GamingAnonymous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GamingAnonymous/subscriptions","organizations_url":"https://api.github.com/users/GamingAnonymous/orgs","repos_url":"https://api.github.com/users/GamingAnonymous/repos","events_url":"https://api.github.com/users/GamingAnonymous/events{/privacy}","received_events_url":"https://api.github.com/users/GamingAnonymous/received_events","type":"User","site_admin":false},"labels":[{"id":507159151,"url":"https://api.github.com/repos/GamingAnonymous/TornCityAPISharp/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"GamingAnonymous","id":11426121,"avatar_url":"https://avatars.githubusercontent.com/u/11426121?v=3","gravatar_id":"","url":"https://api.github.com/users/GamingAnonymous","html_url":"https://github.com/GamingAnonymous","followers_url":"https://api.github.com/users/GamingAnonymous/followers","following_url":"https://api.github.com/users/GamingAnonymous/following{/other_user}","gists_url":"https://api.github.com/users/GamingAnonymous/gists{/gist_id}","starred_url":"https://api.github.com/users/GamingAnonymous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GamingAnonymous/subscriptions","organizations_url":"https://api.github.com/users/GamingAnonymous/orgs","repos_url":"https://api.github.com/users/GamingAnonymous/repos","events_url":"https://api.github.com/users/GamingAnonymous/events{/privacy}","received_events_url":"https://api.github.com/users/GamingAnonymous/received_events","type":"User","site_admin":false},"assignees":[{"login":"GamingAnonymous","id":11426121,"avatar_url":"https://avatars.githubusercontent.com/u/11426121?v=3","gravatar_id":"","url":"https://api.github.com/users/GamingAnonymous","html_url":"https://github.com/GamingAnonymous","followers_url":"https://api.github.com/users/GamingAnonymous/followers","following_url":"https://api.github.com/users/GamingAnonymous/following{/other_user}","gists_url":"https://api.github.com/users/GamingAnonymous/gists{/gist_id}","starred_url":"https://api.github.com/users/GamingAnonymous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GamingAnonymous/subscriptions","organizations_url":"https://api.github.com/users/GamingAnonymous/orgs","repos_url":"https://api.github.com/users/GamingAnonymous/repos","events_url":"https://api.github.com/users/GamingAnonymous/events{/privacy}","received_events_url":"https://api.github.com/users/GamingAnonymous/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/GamingAnonymous/TornCityAPISharp/milestones/1","html_url":"https://github.com/GamingAnonymous/TornCityAPISharp/milestone/1","labels_url":"https://api.github.com/repos/GamingAnonymous/TornCityAPISharp/milestones/1/labels","id":2216103,"number":1,"title":"Beta","description":"When the wrapper is considered production ready, but still early.","creator":{"login":"GamingAnonymous","id":11426121,"avatar_url":"https://avatars.githubusercontent.com/u/11426121?v=3","gravatar_id":"","url":"https://api.github.com/users/GamingAnonymous","html_url":"https://github.com/GamingAnonymous","followers_url":"https://api.github.com/users/GamingAnonymous/followers","following_url":"https://api.github.com/users/GamingAnonymous/following{/other_user}","gists_url":"https://api.github.com/users/GamingAnonymous/gists{/gist_id}","starred_url":"https://api.github.com/users/GamingAnonymous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GamingAnonymous/subscriptions","organizations_url":"https://api.github.com/users/GamingAnonymous/orgs","repos_url":"https://api.github.com/users/GamingAnonymous/repos","events_url":"https://api.github.com/users/GamingAnonymous/events{/privacy}","received_events_url":"https://api.github.com/users/GamingAnonymous/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":4,"state":"open","created_at":"2016-12-26T23:35:36Z","updated_at":"2016-12-29T19:39:19Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-12-26T23:31:38Z","updated_at":"2016-12-29T19:41:00Z","closed_at":null,"body":"Here is the specific error.\r\n```\r\nAn unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll\r\nAdditional information: Exception has been thrown by the target of an invocation.\r\n```\r\nAs you will be able to see there is not a lot going on. My API key was there, I tested the faction stats and that worked successfully. However, player stats just causes an exception.\r\n```\r\nusing System;\r\nusing System.Windows.Forms;\r\nusing TornCityAPISharp;\r\n\r\nnamespace TornCityAPITestPlayground\r\n{\r\n\tpublic partial class Form1 : Form\r\n\t{\r\n\t\tAPI api = new API(\"MyAPIKeyWasHere\");\r\n\t\tPlayerStatistics player;\r\n\r\n\r\n\t\tpublic Form1()\r\n\t\t{\r\n\t\t\tInitializeComponent();\r\n\t\t}\r\n\r\n\t\tprivate void Form1_Load(object sender, EventArgs e)\r\n\t\t{\r\n\t\t\tplayer = new PlayerStatistics(ref api);\r\n\t\t}\r\n\r\n\t\tprivate void timer_UpdateStats_Tick(object sender, EventArgs e)\r\n\t\t{\r\n\t\t\t// My PlayerStats method causes an exception\r\n\t\t\tPlayerStats();\r\n\r\n\t\t\tDisplayAPICallCount();\r\n\t\t}\r\n\r\n\t\tprivate async void PlayerStats()\r\n\t\t{\r\n\t\t\tvar playerBasic = await player.GetPlayerBasic();\r\n\t\t\tConsole.WriteLine(playerBasic.life.current);\r\n\t\t}\r\n\r\n\t\tprivate void DisplayAPICallCount()\r\n\t\t{\r\n\t\t\tConsole.WriteLine(api.ApiCallCount);\r\n\t\t}\r\n\t}\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/GamingAnonymous/TornCityAPISharp/issues/comments/269682223","html_url":"https://github.com/GamingAnonymous/TornCityAPISharp/issues/3#issuecomment-269682223","issue_url":"https://api.github.com/repos/GamingAnonymous/TornCityAPISharp/issues/3","id":269682223,"user":{"login":"LodeVlaeminck","id":1576092,"avatar_url":"https://avatars.githubusercontent.com/u/1576092?v=3","gravatar_id":"","url":"https://api.github.com/users/LodeVlaeminck","html_url":"https://github.com/LodeVlaeminck","followers_url":"https://api.github.com/users/LodeVlaeminck/followers","following_url":"https://api.github.com/users/LodeVlaeminck/following{/other_user}","gists_url":"https://api.github.com/users/LodeVlaeminck/gists{/gist_id}","starred_url":"https://api.github.com/users/LodeVlaeminck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LodeVlaeminck/subscriptions","organizations_url":"https://api.github.com/users/LodeVlaeminck/orgs","repos_url":"https://api.github.com/users/LodeVlaeminck/repos","events_url":"https://api.github.com/users/LodeVlaeminck/events{/privacy}","received_events_url":"https://api.github.com/users/LodeVlaeminck/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T19:41:00Z","updated_at":"2016-12-29T19:41:00Z","body":"Yes The icons, I have been thinking about that. The come as properties but really should just be a list of strings. "}}
{"actor":{"display_login":"LodeVlaeminck"}}