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

end of stream 오류가 발생합니다 #339

Open
goodtu02 opened this issue Jan 6, 2025 · 1 comment
Open

end of stream 오류가 발생합니다 #339

goodtu02 opened this issue Jan 6, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@goodtu02
Copy link

goodtu02 commented Jan 6, 2025

발생 상황이 불규칙하여 원인은 찾지 못했습니다
defaulthttpclient를 생성할 때 gzip해제, retryOnConnectionFailure과 timeout 설정을 추가해도 해결이 안됩니다

java.io.IOException: unexpected end of stream on https://app.dcinside.com/...
at okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.kt:209)
at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:111)
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:95)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:84)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:65)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at be.zvz.kotlininside.MainKt$main$$inlined$-addInterceptor$2.intercept(OkHttpClient.kt:1148)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:205)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:158)
at be.zvz.kotlininside.http.DefaultHttpClient.get(DefaultHttpClient.kt:144)
at be.zvz.kotlininside.api.article.ArticleList.request(ArticleList.kt:145)
at be.zvz.kotlininside.MainKt.main(Main.kt:130)
at be.zvz.kotlininside.MainKt.main(Main.kt)
Caused by: java.io.EOFException: \n not found: limit=0 content=…
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.kt:332)
at okhttp3.internal.http1.HeadersReader.readLine(HeadersReader.kt:29)
at okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.kt:179)
... 19 more

@JellyBrick
Copy link
Member

DC 서버에서 비표준 HTTP로 응답하여 생기는 문제 같습니다

@JellyBrick JellyBrick added the bug Something isn't working label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants