{"action":"created","issue":{"url":"https://api.github.com/repos/Blackkatt/ToggleThatEpisode/issues/1","repository_url":"https://api.github.com/repos/Blackkatt/ToggleThatEpisode","labels_url":"https://api.github.com/repos/Blackkatt/ToggleThatEpisode/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Blackkatt/ToggleThatEpisode/issues/1/comments","events_url":"https://api.github.com/repos/Blackkatt/ToggleThatEpisode/issues/1/events","html_url":"https://github.com/Blackkatt/ToggleThatEpisode/issues/1","id":185197490,"number":1,"title":"It does not seem to work","user":{"login":"Crowley007","id":23026322,"avatar_url":"https://avatars.githubusercontent.com/u/23026322?v=3","gravatar_id":"","url":"https://api.github.com/users/Crowley007","html_url":"https://github.com/Crowley007","followers_url":"https://api.github.com/users/Crowley007/followers","following_url":"https://api.github.com/users/Crowley007/following{/other_user}","gists_url":"https://api.github.com/users/Crowley007/gists{/gist_id}","starred_url":"https://api.github.com/users/Crowley007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crowley007/subscriptions","organizations_url":"https://api.github.com/users/Crowley007/orgs","repos_url":"https://api.github.com/users/Crowley007/repos","events_url":"https://api.github.com/users/Crowley007/events{/privacy}","received_events_url":"https://api.github.com/users/Crowley007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-10-25T18:31:03Z","updated_at":"2016-10-25T19:07:11Z","closed_at":null,"body":"**Hello! I've been trying to get this to work, but \"Kodi callbacks\" never runs the script, and when I try to run it manually I get these errors in powershell:**\r\n\r\n<Invoke-RestMethod : The remote server returned an error: (500) Internal Server Error.\r\nAt C:\\Onedrive\\ToggleThatEpisode-master\\ToggleThatEpisode.ps1:94 char:13\r\n+ $Episodes = Invoke-RestMethod -Uri $getEpisodes$SerieId -Method Get - ...\r\n+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException\r\n    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand\r\n \r\nInvoke-RestMethod : The remote server returned an error: (500) Internal Server Error.\r\nAt C:\\Onedrive\\ToggleThatEpisode-master\\ToggleThatEpisode.ps1:106 char:11\r\n+ $Toggle = Invoke-RestMethod -Uri $getEpisodes$EpisodeId -Method Put - ...\r\n+           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException\r\n    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand\r\n >\r\n\r\n**And these in Sonarr logs:**\r\n\r\n\r\nNzbDroneErrorPipeline\r\nRequest Failed: Error reading integer. Unexpected token: StartObject. Path 'SeriesId', line 2, position 19.\r\n21:20\r\n\r\nNzbDroneErrorPipeline\r\nRequest Failed: Input string was not in a correct format.\r\n\r\n**I would really love to get this to work!**"},"comment":{"url":"https://api.github.com/repos/Blackkatt/ToggleThatEpisode/issues/comments/256144623","html_url":"https://github.com/Blackkatt/ToggleThatEpisode/issues/1#issuecomment-256144623","issue_url":"https://api.github.com/repos/Blackkatt/ToggleThatEpisode/issues/1","id":256144623,"user":{"login":"Crowley007","id":23026322,"avatar_url":"https://avatars.githubusercontent.com/u/23026322?v=3","gravatar_id":"","url":"https://api.github.com/users/Crowley007","html_url":"https://github.com/Crowley007","followers_url":"https://api.github.com/users/Crowley007/followers","following_url":"https://api.github.com/users/Crowley007/following{/other_user}","gists_url":"https://api.github.com/users/Crowley007/gists{/gist_id}","starred_url":"https://api.github.com/users/Crowley007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crowley007/subscriptions","organizations_url":"https://api.github.com/users/Crowley007/orgs","repos_url":"https://api.github.com/users/Crowley007/repos","events_url":"https://api.github.com/users/Crowley007/events{/privacy}","received_events_url":"https://api.github.com/users/Crowley007/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T19:07:11Z","updated_at":"2016-10-25T19:07:11Z","body":"Ok, it worked manually, but not when Kodi callback runs it. Strange."}}
{"actor":{"display_login":"Crowley007"}}