{"action":"created","issue":{"url":"https://api.github.com/repos/square/retrofit/issues/742","labels_url":"https://api.github.com/repos/square/retrofit/issues/742/labels{/name}","comments_url":"https://api.github.com/repos/square/retrofit/issues/742/comments","events_url":"https://api.github.com/repos/square/retrofit/issues/742/events","html_url":"https://github.com/square/retrofit/issues/742","id":57031421,"number":742,"title":"retrofit.RetrofitError: Unexpected status line: \"\"HTTP/1.1 204 No Content","user":{"login":"huangcd","id":89918,"avatar_url":"https://avatars.githubusercontent.com/u/89918?v=3","gravatar_id":"","url":"https://api.github.com/users/huangcd","html_url":"https://github.com/huangcd","followers_url":"https://api.github.com/users/huangcd/followers","following_url":"https://api.github.com/users/huangcd/following{/other_user}","gists_url":"https://api.github.com/users/huangcd/gists{/gist_id}","starred_url":"https://api.github.com/users/huangcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangcd/subscriptions","organizations_url":"https://api.github.com/users/huangcd/orgs","repos_url":"https://api.github.com/users/huangcd/repos","events_url":"https://api.github.com/users/huangcd/events{/privacy}","received_events_url":"https://api.github.com/users/huangcd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-09T13:39:27Z","updated_at":"2015-02-10T12:07:58Z","closed_at":"2015-02-09T17:37:09Z","body":"For the same request http://foo.com, sometimes it's OK, but sometimes it throws the following exception. When using Volley or other network debug tools, it's totally OK.\r\nThe server side is build on ASP.NET Web API\r\n\r\n    02-09 21:31:06.524  24561-27120/com.jakata.baca D/Retrofit﹕ ---> HTTP GET http://foo.com\r\n    02-09 21:31:06.724  24561-27120/com.jakata.baca D/Retrofit﹕ ---- ERROR http://foo.com\r\n    02-09 21:31:06.725  24561-27120/com.jakata.baca D/Retrofit﹕ java.net.ProtocolException: Unexpected status line: \"\"HTTP/1.1 204 No Content\r\n                at com.squareup.okhttp.internal.http.StatusLine.parse(StatusLine.java:53)\r\n                at com.squareup.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:189)\r\n                at com.squareup.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:101)\r\n                at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:676)\r\n                at com.squareup.okhttp.Call.getResponse(Call.java:205)\r\n                at com.squareup.okhttp.Call.execute(Call.java:80)\r\n                at retrofit.client.OkClient.execute(OkClient.java:53)\r\n                at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:326)\r\n                at retrofit.RestAdapter$RestHandler.access$100(RestAdapter.java:220)\r\n                at retrofit.RestAdapter$RestHandler$2.obtainResponse(RestAdapter.java:278)\r\n                at retrofit.CallbackRunnable.run(CallbackRunnable.java:42)\r\n                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\n                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\n                at retrofit.Platform$Android$2$1.run(Platform.java:142)\r\n                at java.lang.Thread.run(Thread.java:818)\r\n    02-09 21:31:06.725  24561-27120/com.jakata.baca D/Retrofit﹕ ---- END ERROR"},"comment":{"url":"https://api.github.com/repos/square/retrofit/issues/comments/73689174","html_url":"https://github.com/square/retrofit/issues/742#issuecomment-73689174","issue_url":"https://api.github.com/repos/square/retrofit/issues/742","id":73689174,"user":{"login":"huangcd","id":89918,"avatar_url":"https://avatars.githubusercontent.com/u/89918?v=3","gravatar_id":"","url":"https://api.github.com/users/huangcd","html_url":"https://github.com/huangcd","followers_url":"https://api.github.com/users/huangcd/followers","following_url":"https://api.github.com/users/huangcd/following{/other_user}","gists_url":"https://api.github.com/users/huangcd/gists{/gist_id}","starred_url":"https://api.github.com/users/huangcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangcd/subscriptions","organizations_url":"https://api.github.com/users/huangcd/orgs","repos_url":"https://api.github.com/users/huangcd/repos","events_url":"https://api.github.com/users/huangcd/events{/privacy}","received_events_url":"https://api.github.com/users/huangcd/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T12:07:57Z","updated_at":"2015-02-10T12:07:57Z","body":"Just wondering if there is any chance that somehow OkHttp didn't consume the previews request, which is an empty json string '\"\"'. \r\nAny example\r\n    \r\n    HTTP/1.1 200 OK\r\n    XXX\r\n    XXX\r\n\r\n    \"\" (preview request following by the error request) HTTP/1.1 204 No Content\r\n\r\nThe `HTTP/1.1 204 No Content` is just an example, which could also be 200, 404, 500"}}