{"action":"created","issue":{"url":"https://api.github.com/repos/gambol99/go-marathon/issues/16","labels_url":"https://api.github.com/repos/gambol99/go-marathon/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/gambol99/go-marathon/issues/16/comments","events_url":"https://api.github.com/repos/gambol99/go-marathon/issues/16/events","html_url":"https://github.com/gambol99/go-marathon/issues/16","id":66193153,"number":16,"title":"Tasks endpoint  does not return JSON","user":{"login":"iderdik","id":823778,"avatar_url":"https://avatars.githubusercontent.com/u/823778?v=3","gravatar_id":"","url":"https://api.github.com/users/iderdik","html_url":"https://github.com/iderdik","followers_url":"https://api.github.com/users/iderdik/followers","following_url":"https://api.github.com/users/iderdik/following{/other_user}","gists_url":"https://api.github.com/users/iderdik/gists{/gist_id}","starred_url":"https://api.github.com/users/iderdik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iderdik/subscriptions","organizations_url":"https://api.github.com/users/iderdik/orgs","repos_url":"https://api.github.com/users/iderdik/repos","events_url":"https://api.github.com/users/iderdik/events{/privacy}","received_events_url":"https://api.github.com/users/iderdik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gambol99/go-marathon/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/gambol99/go-marathon/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-03T17:20:45Z","updated_at":"2015-04-21T17:39:00Z","closed_at":"2015-04-15T21:38:40Z","body":"For some reason, Marathon does not return JSON for its v2/tasks endpoint. This library expects a JSON response and fails with \"failed to unmarshall the response from marathon,\" when calling client.GetAllTasks()."},"comment":{"url":"https://api.github.com/repos/gambol99/go-marathon/issues/comments/94882288","html_url":"https://github.com/gambol99/go-marathon/issues/16#issuecomment-94882288","issue_url":"https://api.github.com/repos/gambol99/go-marathon/issues/16","id":94882288,"user":{"login":"iderdik","id":823778,"avatar_url":"https://avatars.githubusercontent.com/u/823778?v=3","gravatar_id":"","url":"https://api.github.com/users/iderdik","html_url":"https://github.com/iderdik","followers_url":"https://api.github.com/users/iderdik/followers","following_url":"https://api.github.com/users/iderdik/following{/other_user}","gists_url":"https://api.github.com/users/iderdik/gists{/gist_id}","starred_url":"https://api.github.com/users/iderdik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iderdik/subscriptions","organizations_url":"https://api.github.com/users/iderdik/orgs","repos_url":"https://api.github.com/users/iderdik/repos","events_url":"https://api.github.com/users/iderdik/events{/privacy}","received_events_url":"https://api.github.com/users/iderdik/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T17:39:00Z","updated_at":"2015-04-21T17:39:00Z","body":"Sorry for late response. The issue still occurs (Marathon version 0.8). Here is the debug output:\r\n```\r\ndebug]: apiCall() method: GET, uri: v2/tasks, body:\r\n[debug]: httpCall(): GET, uri: v2/tasks, url: http://xxxxxxxx.net:8080/v2/tasks\r\n[debug]: httpCall: GET, uri: v2/tasks, url: http://xxxxxxxx.net:8080/v2/tasks\r\n[debug]: apiCall() status: 200, content: phpinfoa\t80\ti-0eb61bf8.xxxxx.net:31002\ti-f400463d.xxxxxxxx.net:31003\ti-1dec4510.xxxxxxxx.net:31001\ti-0eb61bf8.xxxxx.net:31003\r\nphpinfoc\t10000\ti-f400463d.xxxxx.net:31000\ti-0eb61bf8.xxxxx.net:31004\ti-f400463d.xxxxx.net:31004\ti-1dec4510.xxxxx.net:31004\r\nphpinfod\t10001\ti-f400463d.xxxxx.net:31001\ti-1dec4510.xxxxx.net:31000\ti-0eb61bf8.xxxxx.net:31000\ti-1dec4510.xxxxx.net:31002\r\n[debug]: apiCall(): failed to unmarshall the response from marathon, error: invalid character 'p' looking for beginning of value\r\n```\r\n\r\nThe call was made as `Client.AllTasks()`"}}