{"action":"opened","issue":{"url":"https://api.github.com/repos/DiUS/pact-jvm/issues/307","repository_url":"https://api.github.com/repos/DiUS/pact-jvm","labels_url":"https://api.github.com/repos/DiUS/pact-jvm/issues/307/labels{/name}","comments_url":"https://api.github.com/repos/DiUS/pact-jvm/issues/307/comments","events_url":"https://api.github.com/repos/DiUS/pact-jvm/issues/307/events","html_url":"https://github.com/DiUS/pact-jvm/issues/307","id":170306271,"number":307,"title":"gradle pactPublish fails","user":{"login":"carwinz","id":1664783,"avatar_url":"https://avatars.githubusercontent.com/u/1664783?v=3","gravatar_id":"","url":"https://api.github.com/users/carwinz","html_url":"https://github.com/carwinz","followers_url":"https://api.github.com/users/carwinz/followers","following_url":"https://api.github.com/users/carwinz/following{/other_user}","gists_url":"https://api.github.com/users/carwinz/gists{/gist_id}","starred_url":"https://api.github.com/users/carwinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carwinz/subscriptions","organizations_url":"https://api.github.com/users/carwinz/orgs","repos_url":"https://api.github.com/users/carwinz/repos","events_url":"https://api.github.com/users/carwinz/events{/privacy}","received_events_url":"https://api.github.com/users/carwinz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-10T01:07:17Z","updated_at":"2016-08-10T01:07:17Z","closed_at":null,"body":"I think the fix for #291 may have broken the successful publish case:\r\n\r\n```\r\nPublishing service-another-service.json ... HTTP/1.1 201 Created\r\n:pactPublish FAILED\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':pactPublish'.\r\n> No signature of method: org.apache.http.message.BasicStatusLine.startsWith() is applicable for argument types: (java.lang.String) values: [FAILED!]\r\n```\r\n\r\nPactBrokerClient returns resp.statusLine (a BasicStatusLine) whereas the failure case returns a string\r\n\r\n      response.success = { resp -> resp.statusLine }\r\n      response.failure = { resp, json ->\r\n        def error = json?.errors?.join(', ') ?: 'Unknown error'\r\n        \"FAILED! ${resp.statusLine.statusCode} ${resp.statusLine.reasonPhrase} - ${error}\"\r\n      }\r\n\r\nOccuring in 3.2.11"}}
{"actor":{"display_login":"carwinz"}}