You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I upload a file as its size larger than 5GB, it happened error like this:
okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
at okhttp3.internal.http2.Http2Stream.checkOutNotClosed$okhttp(Http2Stream.kt:646)
at okhttp3.internal.http2.Http2Stream$FramingSink.flush(Http2Stream.kt:576)
at okio.ForwardingSink.flush(ForwardingSink.kt:32)
at okhttp3.internal.connection.Exchange$RequestBodySink.flush(Exchange.kt:228)
at okio.RealBufferedSink.flush(RealBufferedSink.kt:270)
at com.jalr.handler.TableSampleDataUploadHandler$1.writeTo(TableSampleDataUploadHandler.java:205)
at com.jalr.common.util.CommonOkHttpClientUtil.lambda$getInnerOkhttpClientBuilder$0(CommonOkHttpClientUtil.java:104)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
At the same time, the server entry point nginx proxy returns HTTP 408 code for this error.
What I have attempted?
I tried to change the client protocol to HTTP 1.1 by .protocols() in okhttp3 builder, but this issue still occurred occasionally, somehow it's way less likely for the problem to happen now.
What's the reason for this issue? Is there any other way I can fix this issue?
The text was updated successfully, but these errors were encountered:
Try with 4.12 in case some recent fixes affect this. Without a repro against that server, it will be hard to diagnose.
But I suspect that the server or proxy is telling you it doesn't like such a big request. If you can complete this with curl or another client, it would help see if it's definitely working.
Closing for now as no action to take. Please make a repro or give us more debug info to go on.
Environment
Client
openjdk version "1.8.0_352" OpenJDK Runtime Environment (build 1.8.0_352-b08) OpenJDK 64-Bit Server VM (build 25.352-b08, mixed mode)
Server
entry point proxy:
backend server enviroment:
openjdk version "1.8.0_352" OpenJDK Runtime Environment (build 1.8.0_352-b08) OpenJDK 64-Bit Server VM (build 25.352-b08, mixed mode)
Reproduce
In my scenario, I used okhttp3 as a large file upload HTTP client. Client code something like below:
Issue & Stracktrace:
When I upload a file as its size larger than 5GB, it happened error like this:
At the same time, the server entry point nginx proxy returns HTTP 408 code for this error.
What I have attempted?
I tried to change the client protocol to
HTTP 1.1
by.protocols()
in okhttp3 builder, but this issue still occurred occasionally, somehow it's way less likely for the problem to happen now.What's the reason for this issue? Is there any other way I can fix this issue?
The text was updated successfully, but these errors were encountered: