{"action":"created","issue":{"url":"https://api.github.com/repos/square/okhttp/issues/1114","labels_url":"https://api.github.com/repos/square/okhttp/issues/1114/labels{/name}","comments_url":"https://api.github.com/repos/square/okhttp/issues/1114/comments","events_url":"https://api.github.com/repos/square/okhttp/issues/1114/events","html_url":"https://github.com/square/okhttp/issues/1114","id":47509127,"number":1114,"title":"EOFException in RealBufferedSource.readUtf8LineStrict","user":{"login":"swankjesse","id":133019,"avatar_url":"https://avatars.githubusercontent.com/u/133019?v=3","gravatar_id":"","url":"https://api.github.com/users/swankjesse","html_url":"https://github.com/swankjesse","followers_url":"https://api.github.com/users/swankjesse/followers","following_url":"https://api.github.com/users/swankjesse/following{/other_user}","gists_url":"https://api.github.com/users/swankjesse/gists{/gist_id}","starred_url":"https://api.github.com/users/swankjesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swankjesse/subscriptions","organizations_url":"https://api.github.com/users/swankjesse/orgs","repos_url":"https://api.github.com/users/swankjesse/repos","events_url":"https://api.github.com/users/swankjesse/events{/privacy}","received_events_url":"https://api.github.com/users/swankjesse/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/square/okhttp/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/square/okhttp/milestones/12","html_url":"https://github.com/square/okhttp/milestones/2.4","labels_url":"https://api.github.com/repos/square/okhttp/milestones/12/labels","id":999936,"number":12,"title":"2.4","description":"","creator":{"login":"swankjesse","id":133019,"avatar_url":"https://avatars.githubusercontent.com/u/133019?v=3","gravatar_id":"","url":"https://api.github.com/users/swankjesse","html_url":"https://github.com/swankjesse","followers_url":"https://api.github.com/users/swankjesse/followers","following_url":"https://api.github.com/users/swankjesse/following{/other_user}","gists_url":"https://api.github.com/users/swankjesse/gists{/gist_id}","starred_url":"https://api.github.com/users/swankjesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swankjesse/subscriptions","organizations_url":"https://api.github.com/users/swankjesse/orgs","repos_url":"https://api.github.com/users/swankjesse/repos","events_url":"https://api.github.com/users/swankjesse/events{/privacy}","received_events_url":"https://api.github.com/users/swankjesse/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":1,"state":"open","created_at":"2015-02-28T12:48:24Z","updated_at":"2015-03-17T21:08:23Z","due_on":"2015-06-15T04:00:00Z","closed_at":null},"comments":65,"created_at":"2014-11-01T15:57:06Z","updated_at":"2015-03-18T03:45:24Z","closed_at":null,"body":"A few people have reported this. Needs investigation & fix.\r\n\r\n```\r\njava.io.EOFException: null\r\n    at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:154) ~[na:0.0]\r\n    at com.squareup.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:189) ~[na:0.0]\r\n    at com.squareup.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:101) ~[na:0.0]\r\n    at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:676) ~[na:0.0]\r\n    at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:426) ~[na:0.0]\r\n    at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:371) ~[na:0.0]\r\n    at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:466) ~[na:0.0]\r\n    at com.squareup.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105) ~[na:0.0]\r\n ```"},"comment":{"url":"https://api.github.com/repos/square/okhttp/issues/comments/82727393","html_url":"https://github.com/square/okhttp/issues/1114#issuecomment-82727393","issue_url":"https://api.github.com/repos/square/okhttp/issues/1114","id":82727393,"user":{"login":"swankjesse","id":133019,"avatar_url":"https://avatars.githubusercontent.com/u/133019?v=3","gravatar_id":"","url":"https://api.github.com/users/swankjesse","html_url":"https://github.com/swankjesse","followers_url":"https://api.github.com/users/swankjesse/followers","following_url":"https://api.github.com/users/swankjesse/following{/other_user}","gists_url":"https://api.github.com/users/swankjesse/gists{/gist_id}","starred_url":"https://api.github.com/users/swankjesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swankjesse/subscriptions","organizations_url":"https://api.github.com/users/swankjesse/orgs","repos_url":"https://api.github.com/users/swankjesse/repos","events_url":"https://api.github.com/users/swankjesse/events{/privacy}","received_events_url":"https://api.github.com/users/swankjesse/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T03:45:24Z","updated_at":"2015-03-18T03:45:24Z","body":"Run this program? I want to see if the bytes we get are the ones we expect. Paste the output when you have something!\r\n\r\n```\r\n    Socket socket = new Socket(\"sc.seeyouyima.com\", 80);\r\n\r\n    BufferedSink sink = Okio.buffer(Okio.sink(socket));\r\n    sink.timeout().timeout(5, TimeUnit.SECONDS);\r\n    sink.writeUtf8(\"GET /icon/5438e8e45cbe4.png HTTP/1.1\\r\\n\");\r\n    sink.writeUtf8(\"Accept-Encoding: gzip\\r\\n\");\r\n    sink.writeUtf8(\"User-Agent: okhttp/2.3.0\\r\\n\");\r\n    sink.writeUtf8(\"Connection: Keep-Alive\\r\\n\");\r\n    sink.writeUtf8(\"Host: sc.seeyouyima.com\\r\\n\");\r\n    sink.writeUtf8(\"\\r\\n\");\r\n    sink.flush();\r\n\r\n\r\n    Source source = Okio.buffer(Okio.source(socket));\r\n    Buffer buffer = new Buffer();\r\n    while (source.read(buffer, 2048) != -1) {\r\n      System.out.println(buffer.readByteString().hex());\r\n    }\r\n```"}}