Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7780B17C54 for ; Mon, 11 May 2015 21:42:01 +0000 (UTC) Received: (qmail 19760 invoked by uid 500); 11 May 2015 21:42:00 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 19615 invoked by uid 500); 11 May 2015 21:42:00 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 19460 invoked by uid 99); 11 May 2015 21:42:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 May 2015 21:42:00 +0000 Date: Mon, 11 May 2015 21:42:00 +0000 (UTC) From: "Vinay Patodia (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HTTPCLIENT-1647) HTTP Client reporting "Garbage in response" whereas response seems to be valid MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Vinay Patodia created HTTPCLIENT-1647: ----------------------------------------- Summary: HTTP Client reporting "Garbage in response" whereas response seems to be valid Key: HTTPCLIENT-1647 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1647 Project: HttpComponents HttpClient Issue Type: Bug Components: HttpClient Affects Versions: 4.4.1 Reporter: Vinay Patodia Priority: Critical Fix For: 4.4.1 While we are using httpclient to communicate couchDB. At lot of times we encounter: Caused by: org.apache.http.ProtocolException: The server failed to respond with a valid HTTP response On enabling the log we found the following: 2015-05-12 02:54:55 DEBUG org.apache.http.wire : 72 - http-outgoing-2 >> "GET /bbc-metasea-artist-test/27655 HTTP/1.1[\r][\n]" 2015-05-12 02:54:55 DEBUG org.apache.http.wire : 72 - http-outgoing-2 >> "User-Agent: Mozilla/5.0 HungamaHttpClient/2.0[\r][\n]" 2015-05-12 02:54:55 DEBUG org.apache.http.wire : 72 - http-outgoing-2 >> "Host: 107.20.145.158:5984[\r][\n]" 2015-05-12 02:54:55 DEBUG org.apache.http.wire : 72 - http-outgoing-2 >> "Connection: Keep-Alive[\r][\n]" 2015-05-12 02:54:55 DEBUG org.apache.http.wire : 72 - http-outgoing-2 >> "Accept-Encoding: gzip,deflate[\r][\n]" 2015-05-12 02:54:55 DEBUG org.apache.http.wire : 72 - http-outgoing-2 >> "[\r][\n]" 2015-05-12 02:54:55 DEBUG org.apache.http.wire : 72 - http-outgoing-2 << "HTTP/1.1 200 OK[\r][\n]" 2015-05-12 02:54:55 DEBUG org.apache.http.wire : 72 - http-outgoing-2 << "Server: CouchDB/1.6.1 (Erlang OTP/R14B04)[\r][\n]" 2015-05-12 02:54:55 DEBUG org.apache.http.wire : 72 - http-outgoing-2 << "ETag: "4-c76bb63a643c5fed36df0a059c94b94a"[\r][\n]" 2015-05-12 02:54:55 DEBUG org.apache.http.wire : 72 - http-outgoing-2 << "Date: Mon, 11 May 2015 21:25:18 GMT[\r][\n]" 2015-05-12 02:54:55 DEBUG org.apache.http.wire : 72 - http-outgoing-2 << "Content-Type: text/plain; charset=utf-8[\r][\n]" 2015-05-12 02:54:55 DEBUG org.apache.http.wire : 72 - http-outgoing-2 << "Content-Length: 281[\r][\n]" 2015-05-12 02:54:55 DEBUG org.apache.http.wire : 72 - http-outgoing-2 << "Cache-Control: must-revalidate[\r][\n]" 2015-05-12 02:54:55 DEBUG org.apache.http.wire : 72 - http-outgoing-2 << "[\r][\n]" 2015-05-12 02:54:55 DEBUG org.apache.http.wire : 72 - http-outgoing-2 << "{"_id":"27655","_rev":"4-c76bb63a643c5fed36df0a059c94b94a","id":"ms2-Pramod Chakraborty","title":"Pramod Chakraborty","roles":["producer","director"],"metaseaPublisherPulledAt":"2015-05-10T02:42:06.999+0000","metaseaInvalidatedOn":"2015-05-05T08:23:14.691+0000","metaseaId":27655}[\n]" 2015-05-12 02:54:55 DEBUG org.apache.http.impl.conn.DefaultHttpResponseParser : 155 - Garbage in response: {"_id":"27655","_rev":"4-c76bb63a643c5fed36df0a059c94b94a","id":"ms2-Pramod Chakraborty","title":"Pramod Chakraborty","roles":["producer","director"],"metaseaPublisherPulledAt":"2015-05-10T02:42:06.999+0000","metaseaInvalidatedOn":"2015-05-05T08:23:14.691+0000","metaseaId":27655} On the face of it this looks a proper response. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org