https://linen.dev logo
#help
Title
# help
j

Jackie chen

03/05/2024, 9:51 PM
Hello All With a proxy request, somehow an application sends a gzip in the http request header, i unzip and modify response then Gzip.zip(modifiedResponse) in GlobalResponseTransformer, Wiremock 2.33 I am getting an issue when the application got the gzip response from Wiremock as below. It is not an issue when i return the original zipped response from the proxied request to the application. Not sure if it is caused by Java 17
Copy code
Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
    at java.base/java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:245)
    at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:159)
    at java.base/java.util.zip.GZIPInputStream.read(GZIPInputStream.java:118)
    at org.apache.http.client.entity.LazyDecompressingInputStream.read(LazyDecompressingInputStream.java:70)
    at java.base/java.io.FilterInputStream.read(FilterInputStream.java:133)
    at java.base/java.io.PushbackInputStream.read(PushbackInputStream.java:183)
    at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._loadMore(UTF8StreamJsonParser.java:220)
    at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.parseEscapedName(UTF8StreamJsonParser.java:1985)
    at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.slowParseName(UTF8StreamJsonParser.java:1891)
    at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._parseName(UTF8StreamJsonParser.java:1675)
    at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:757)
    at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:401)
5 Views