Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.io.IOException: java.util.zip.DataFormatException: invalid distance too far back #7178

Closed
steve-chancetop opened this issue Mar 24, 2022 · 3 comments
Labels
bug Bug in existing code needs info More information needed from reporter

Comments

@steve-chancetop
Copy link

Hello, guys. I found an issue when I integrated Java project with kotlin project. This issue occurred when a java client calling a kotlin api (javalin). This issue confused me a lot. Would you guys give some explain of this.
Error trace as

Caused by: java.io.IOException: java.util.zip.DataFormatException: invalid distance too far back
	at okio.InflaterSource.readOrInflate(InflaterSource.kt:99)
	at okio.InflaterSource.read(InflaterSource.kt:49)
	at okio.GzipSource.read(GzipSource.kt:69)
	at okio.Buffer.writeAll(Buffer.kt:1642)
	at okio.RealBufferedSource.readByteArray(RealBufferedSource.kt:236)
	at okhttp3.ResponseBody.bytes(ResponseBody.kt:124)
@steve-chancetop steve-chancetop added the bug Bug in existing code label Mar 24, 2022
@yschimke
Copy link
Collaborator

It's most likely either

a) a corrupted file
b) a bug in okio
c) some concurrency bug, such as multiple threads reading from a response

We can't do much with this report, can you provide a reproduction.

@yschimke yschimke added the needs info More information needed from reporter label Mar 24, 2022
@steve-chancetop
Copy link
Author

Thank you for your updates. This is not easy to reproduce. But I'd prefer to provide it, if there is any more detail to reproduce it.

@yschimke
Copy link
Collaborator

Thanks, please reopen with more detail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug in existing code needs info More information needed from reporter
Projects
None yet
Development

No branches or pull requests

2 participants