Error while getting the compressed data .

Hi all,

I have a backend system where the response is compressed and sent , Content-Encoding :deflate.

I have tried to put the compression algorithm property , it didn't work . And when i set the Accept-Encoding header as deflate , i am getting the below error.

2018-06-14 13:33:24,490 NIOThread@0 ERROR ADAPTORS.HTTP.FLOW - AbstractResponseListener.onException() : AbstractResponseListener.onError(HTTPResponse@6b3dfa8c, unknown compression method) 2018-06-14 13:33:24,491 NIOThread@0 INFO HTTP.SERVICE - ExceptionHandler.handleException() : Exception java.util.zip.ZipException: unknown compression method occurred while writing to channel null 2018-06-14 13:33:24,491 NIOThread@0 INFO HTTP.SERVICE - ExceptionHandler.handleException() : Exception trace: java.util.zip.ZipException: unknown compression method at com.apigee.nio.channels.InflaterInputChannel.doRead(InflaterInputChannel.java:68) ~[nio-1.0.0.jar:na] at com.apigee.nio.channels.InputChannel.read(InputChannel.java:103) ~[nio-1.0.0.jar:na] at com.apigee.protocol.http.TrackingInputChannel.doRead(TrackingInputChannel.java:44) ~[http-1.0.0.jar:na] at com.apigee.nio.channels.InputChannel.read(InputChannel.java:103) ~[nio-1.0.0.jar:na] at com.apigee.nio.util.Bytes.readChunk(Bytes.java:250) ~[nio-1.0.0.jar:na] at com.apigee.protocol.http.io.BodyPipe.onWrite(BodyPipe.java:152) [http-1.0.0.jar:na] at com.apigee.protocol.http.io.BodyPipe.start(BodyPipe.java:104) [http-1.0.0.jar:na] at com.apigee.messaging.adaptors.http.message.HttpTransportMessage.parsePayload(HttpTransportMessage.java:259) [http-adaptor-1.0.0.jar:na] at com.apigee.messaging.adaptors.http.message.HttpTransportMessage.parsePayload(HttpTransportMessage.java:241) [http-adaptor-1.0.0.jar:na] at com.apigee.messaging.adaptors.http.message.HttpTransportMessage.parsePayload(HttpTransportMessage.java:236) [http-adaptor-1.0.0.jar:na] at com.apigee.messaging.adaptors.http.message.HttpTransportMessage.parsePayload(HttpTransportMessage.java:231) [http-adaptor-1.0.0.jar:na] at com.apigee.messaging.runtime.execution.EnqueueToParsePayload$1.run(EnqueueToParsePayload.java:78) [message-processor-1.0.0.jar:na] at com.apigee.nio.NIOSelector.runTasks(NIOSelector.java:363) [nio-1.0.0.jar:na] at com.apigee.nio.NIOSelector.access$000(NIOSelector.java:34) [nio-1.0.0.jar:na] at com.apigee.nio.NIOSelector$2.findNext(NIOSelector.java:311) [nio-1.0.0.jar:na] at com.apigee.nio.NIOSelector$2.findNext(NIOSelector.java:302) [nio-1.0.0.jar:na] at com.apigee.nio.util.NonNullIterator.computeNext(NonNullIterator.java:21) [nio-1.0.0.jar:na] at com.apigee.nio.util.AbstractIterator.hasNext(AbstractIterator.java:47) [nio-1.0.0.jar:na] at com.apigee.nio.handlers.NIOThread.run(NIOThread.java:59) [nio-1.0.0.jar:na] Caused by: java.util.zip.DataFormatException: unknown compression method at java.util.zip.Inflater.inflateBytes(Native Method) ~[na:1.8.0_102] at java.util.zip.Inflater.inflate(Inflater.java:259) ~[na:1.8.0_102] at com.apigee.nio.channels.InflaterInputChannel.doRead(InflaterInputChannel.java:54) ~[nio-1.0.0.jar:na]

Is there something i am missing ? Please suggest.

Thanks,

Latheef D

0 1 324
1 REPLY 1

Is this still a problem?

It seems to me the backend is setting an incorrect content-encoding header: The header does not match the actual content. Please advise if this bears further investigation.