I am trying out RestAssured & wrote the following statements -
String URL = "http://XXXXXXXX";
Response result = given().
header("Authorization","Basic xxxx").
contentType("application/json").
when().
get(url);
JsonPath jp = new JsonPath(result.asString());
On the last statement, I am receiving the following exception :
org.apache.http.ConnectionClosedException: Premature end of chunk coded message body: closing chunk expected
The headers returned in my response are :
Content-Type → application/json; qs=1
Date → Tue, 10 Nov 2015 02:58:47 GMT
Transfer-Encoding → chunked
Could anyone guide me on resolving this exception & point me out if I am missing anything or any in-correct implementation.