Forum Discussion

4nes-team's avatar
4nes-team
Occasional Contributor
4 years ago

REST response without content - closing chunk expected

Hi,

 

we are testing a new version of our API but there is no content in the REST response, although the call ran successfully and the action was done in the backround, too (200 status). Also the property 'transfer-encoding=chunked' in the response header is given as it was in the older version of the API, where it was working properly.

Nevertheless there is an error log proivided by readyapi, that you maybe could analyze on your side.

 

 

Thu Jul 08 13:56:57 CEST 2021: ERROR: org.apache.http.ConnectionClosedException: Premature end of chunk coded message body: closing chunk expected
   org.apache.http.ConnectionClosedException: Premature end of chunk coded message body: closing chunk expected
   	at org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:268)
   	at org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:227)
   	at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:186)
   	at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137)
   	at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:150)
   	at org.apache.http.util.EntityUtils.toByteArray(EntityUtils.java:136)
   	at org.apache.http.entity.BufferedHttpEntity.<init>(BufferedHttpEntity.java:63)
   	at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpMethodSupport.getResponseBody(HttpMethodSupport.java:236)
   	at com.eviware.soapui.impl.wsdl.submit.transports.http.support.methods.ExtendedPostMethod.getResponseBody(ExtendedPostMethod.java:115)
   	at com.eviware.soapui.impl.wsdl.submit.transports.http.SinglePartHttpResponse.<init>(SinglePartHttpResponse.java:53)
   	at com.eviware.soapui.impl.wsdl.submit.filters.HttpPackagingResponseFilter.httpRequest(HttpPackagingResponseFilter.java:81)
   	at com.eviware.soapui.impl.wsdl.submit.filters.HttpPackagingResponseFilter.afterAbstractHttpResponse(HttpPackagingResponseFilter.java:52)
   	at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.afterRequest(AbstractRequestFilter.java:70)
   	at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:295)
   	at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:130)
   	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
   	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
   	at java.base/java.lang.Thread.run(Thread.java:832)

 

 

 Our development team is currently analyzing this problem on our side, but still maybe you know what could cause this issue.

 

Thanks in advance.

 

Regards, 4nes team.

No RepliesBe the first to reply