{"action":"created","issue":{"url":"https://api.github.com/repos/dwclark/http-builder-ng/issues/10","repository_url":"https://api.github.com/repos/dwclark/http-builder-ng","labels_url":"https://api.github.com/repos/dwclark/http-builder-ng/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/dwclark/http-builder-ng/issues/10/comments","events_url":"https://api.github.com/repos/dwclark/http-builder-ng/issues/10/events","html_url":"https://github.com/dwclark/http-builder-ng/issues/10","id":173612514,"number":10,"title":"Apache client throws exception for BASIC auth in POST","user":{"login":"cjstehno","id":183338,"avatar_url":"https://avatars.githubusercontent.com/u/183338?v=3","gravatar_id":"","url":"https://api.github.com/users/cjstehno","html_url":"https://github.com/cjstehno","followers_url":"https://api.github.com/users/cjstehno/followers","following_url":"https://api.github.com/users/cjstehno/following{/other_user}","gists_url":"https://api.github.com/users/cjstehno/gists{/gist_id}","starred_url":"https://api.github.com/users/cjstehno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjstehno/subscriptions","organizations_url":"https://api.github.com/users/cjstehno/orgs","repos_url":"https://api.github.com/users/cjstehno/repos","events_url":"https://api.github.com/users/cjstehno/events{/privacy}","received_events_url":"https://api.github.com/users/cjstehno/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dwclark/http-builder-ng/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/dwclark/http-builder-ng/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-27T19:53:52Z","updated_at":"2016-08-28T12:51:04Z","closed_at":null,"body":"In the `HttpPostSpec` test, the `'[#client] POST (BASIC) /basic: returns content'` test fails for the Apache client but passes for the Java client. The exception thrown is:\r\n\r\n```\r\njava.lang.RuntimeException: org.apache.http.client.ClientProtocolException\r\n\tat groovyx.net.http.optional.ApacheHttpBuilder.exec(ApacheHttpBuilder.java:292)\r\n\tat groovyx.net.http.optional.ApacheHttpBuilder.doPost(ApacheHttpBuilder.java:347)\r\n\tat groovyx.net.http.HttpObjectConfigImpl.nullInterceptor(HttpObjectConfigImpl.java:39)\r\n\tat groovyx.net.http.HttpBuilder.post(HttpBuilder.java:693)\r\n\tat groovyx.net.http.HttpPostSpec.[#client] POST (BASIC) /basic: returns content(HttpPostSpec.groovy:165)\r\nCaused by: org.apache.http.client.ClientProtocolException\r\n\tat org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186)\r\n\tat org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)\r\n\tat org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:220)\r\n\tat org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:164)\r\n\tat groovyx.net.http.optional.ApacheHttpBuilder.exec(ApacheHttpBuilder.java:289)\r\n\t... 4 more\r\nCaused by: org.apache.http.client.NonRepeatableRequestException: Cannot retry request with a non-repeatable request entity.\r\n```\r\n\r\nwhich seems related to this SO post (http://stackoverflow.com/questions/8222929/httppost-failed-due-to-cannot-retry-request-with-a-non-repeatable-request-entit) about repeatable entities. Our HttpEntity implementation is \"not\" repeatable, but I am not sure whether that is intentional or just \"because\".\r\n"},"comment":{"url":"https://api.github.com/repos/dwclark/http-builder-ng/issues/comments/242973136","html_url":"https://github.com/dwclark/http-builder-ng/issues/10#issuecomment-242973136","issue_url":"https://api.github.com/repos/dwclark/http-builder-ng/issues/10","id":242973136,"user":{"login":"cjstehno","id":183338,"avatar_url":"https://avatars.githubusercontent.com/u/183338?v=3","gravatar_id":"","url":"https://api.github.com/users/cjstehno","html_url":"https://github.com/cjstehno","followers_url":"https://api.github.com/users/cjstehno/followers","following_url":"https://api.github.com/users/cjstehno/following{/other_user}","gists_url":"https://api.github.com/users/cjstehno/gists{/gist_id}","starred_url":"https://api.github.com/users/cjstehno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjstehno/subscriptions","organizations_url":"https://api.github.com/users/cjstehno/orgs","repos_url":"https://api.github.com/users/cjstehno/repos","events_url":"https://api.github.com/users/cjstehno/events{/privacy}","received_events_url":"https://api.github.com/users/cjstehno/received_events","type":"User","site_admin":false},"created_at":"2016-08-28T12:51:04Z","updated_at":"2016-08-28T12:51:04Z","body":"This seems like a minor issue. I should be able to take this one up once I am done with testing/documenting the verbs if you don't pick it up first."}}
{"actor":{"display_login":"cjstehno"}}