{"action":"opened","issue":{"url":"https://api.github.com/repos/prometheus/client_java/issues/95","labels_url":"https://api.github.com/repos/prometheus/client_java/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/client_java/issues/95/comments","events_url":"https://api.github.com/repos/prometheus/client_java/issues/95/events","html_url":"https://github.com/prometheus/client_java/issues/95","id":122753239,"number":95,"title":"Add response body to error message when push gateway returns != 202","user":{"login":"fedotxxl","id":1721690,"avatar_url":"https://avatars.githubusercontent.com/u/1721690?v=3","gravatar_id":"","url":"https://api.github.com/users/fedotxxl","html_url":"https://github.com/fedotxxl","followers_url":"https://api.github.com/users/fedotxxl/followers","following_url":"https://api.github.com/users/fedotxxl/following{/other_user}","gists_url":"https://api.github.com/users/fedotxxl/gists{/gist_id}","starred_url":"https://api.github.com/users/fedotxxl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedotxxl/subscriptions","organizations_url":"https://api.github.com/users/fedotxxl/orgs","repos_url":"https://api.github.com/users/fedotxxl/repos","events_url":"https://api.github.com/users/fedotxxl/events{/privacy}","received_events_url":"https://api.github.com/users/fedotxxl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-17T15:05:51Z","updated_at":"2015-12-17T15:05:51Z","closed_at":null,"body":"Please check this problem - https://github.com/prometheus/pushgateway/issues/68 - I don't have enough information to fix the problem.\r\n\r\nI'm not java guru but it should be possible to read body in any case:\r\nhttp://stackoverflow.com/questions/25011927/how-do-i-get-response-body-using-java-net-httpurlconnection-when-401-is-returne\r\nhttp://stackoverflow.com/questions/613307/read-error-response-body-in-java"}}