question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

okhttp3.internal.http2.StreamResetException: stream was reset: CANCEL

See original GitHub issue

We getting the following issue in 3.8.

Back end is AWS ELB and Ruby’s PUMA web server.

Does 3.10 retry the request in this scenario? If so, how many times does it retry the request?

okhttp3.internal.http2.StreamResetException: stream was reset: CANCEL
        at okhttp3.internal.http2.Http2Stream$FramingSource.checkNotClosed(Http2Stream.java:436)
        at okhttp3.internal.http2.Http2Stream$FramingSource.read(Http2Stream.java:338)
        at okio.ForwardingSource.read(ForwardingSource.java:35)
        at okio.RealBufferedSource.read(RealBufferedSource.java:46)
        at okio.RealBufferedSource.exhausted(RealBufferedSource.java:56)
        at okio.InflaterSource.refill(InflaterSource.java:101)
        at okio.InflaterSource.read(InflaterSource.java:62)
        at okio.GzipSource.read(GzipSource.java:80)
        at okio.RealBufferedSource.read(RealBufferedSource.java:46)
        at okio.ForwardingSource.read(ForwardingSource.java:35)
        at retrofit2.OkHttpCall$ExceptionCatchingRequestBody$1.read(OkHttpCall.java:291)
        at okio.RealBufferedSource$1.read(RealBufferedSource.java:430)
        at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:287)
        at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:350)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:179)
        at java.io.InputStreamReader.read(InputStreamReader.java:184)
        at okhttp3.ResponseBody$BomAwareReader.read(ResponseBody.java:252)
        at com.google.gson.stream.JsonReader.fillBuffer(JsonReader.java:1287)
        at com.google.gson.stream.JsonReader.nextQuotedValue(JsonReader.java:1016)
        at com.google.gson.stream.JsonReader.nextString(JsonReader.java:815)
        at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:718)
        at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:739)
        at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:731)
        at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:739)
        at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:714)
        at com.google.gson.internal.Streams.parse(Streams.java:48)
        at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:65)
        at retrofit2.converter.gson.GsonResponseBodyConverter.convert(GsonResponseBodyConverter.java:37)
        at retrofit2.converter.gson.GsonResponseBodyConverter.convert(GsonResponseBodyConverter.java:25)
        at com.freshop.android.consumer.api.factory.NullOnEmptyConverterFactory$1.convert(NullOnEmptyConverterFactory.java:23)
        at com.freshop.android.consumer.api.factory.NullOnEmptyConverterFactory$1.convert(NullOnEmptyConverterFactory.java:19)
        at retrofit2.ServiceMethod.toResponse(ServiceMethod.java:119)
        at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:218)
        at retrofit2.OkHttpCall.execute(OkHttpCall.java:180)
        at retrofit2.adapter.rxjava.CallExecuteOnSubscribe.call(CallExecuteOnSubscribe.java:40)
        at retrofit2.adapter.rxjava.CallExecuteOnSubscribe.call(CallExecuteOnSubscribe.java:24)
        at retrofit2.adapter.rxjava.BodyOnSubscribe.call(BodyOnSubscribe.java:36)
        at retrofit2.adapter.rxjava.BodyOnSubscribe.call(BodyOnSubscribe.java:28)
        at rx.Observable.unsafeSubscribe(Observable.java:10256)
        at rx.internal.operators.OperatorZip$Zip.start(OperatorZip.java:202)
        at rx.internal.operators.OperatorZip$ZipSubscriber.onNext(OperatorZip.java:143)
        at rx.internal.operators.OperatorZip$ZipSubscriber.onNext(OperatorZip.java:109)
        at rx.internal.util.ScalarSynchronousObservable$WeakSingleProducer.request(ScalarSynchronousObservable.java:276)
        at rx.Subscriber.setProducer(Subscriber.java:209)
        at rx.internal.util.ScalarSynchronousObservable$JustOnSubscribe.call(ScalarSynchronousObservable.java:138)
        at rx.internal.util.ScalarSynchronousObservable$JustOnSubscribe.call(ScalarSynchronousObservable.java:129)
        at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
        at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
        at rx.Observable.unsafeSubscribe(Observable.java:10256)
        at rx.internal.operators.OperatorSubscribeOn$SubscribeOnSubscriber.call(OperatorSubscribeOn.java:100)
        at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
        at java.util.concurrent.FutureTask.run(FutureTask.java:237)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:272)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
        at java.lang.Thread.run(Thread.java:761)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
whysqwhwcommented, Jan 20, 2022

Batch download, this problem occurs probabilistically.

0reactions
ylbkoocommented, May 5, 2019

@swankjesse I have tried both nginx(1.10.3) and caddy(1.0.0), the same error as described before.

Read more comments on GitHub >

github_iconTop Results From Across the Web

okhttp3.internal.http2.StreamResetException: stream ... - GitHub
I am connecting to web service with last version retrofit but get me bellow error : okhttp3.internal.http2.StreamResetException: stream was ...
Read more >
OkHttp keeps getting StreamResetException: stream was reset
it was Nginx buffer size problem. If you are using AWS EC2,. Go to /etc/nginx/default.d/server.conf. And set,
Read more >
okhttp3.internal.http2.StreamResetException: stream was reset
okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR. Hi everyone,. When i use okhttp3 to send event about 10 times ...
Read more >
okhttp3.internal.http2.StreamResetException: stream was reset
Hi everyone, I'm geting the next error in NiFi: InvokeHTTP[] Routing to Failure due to exception: IOException - 356227.
Read more >
Error:okhttp3.internal.http2.StreamResetException: stream ...
when i connect with a webservice, i recibe this error after jobdone: Error:eek:khttp3.internal.http2.StreamResetException: stream was reset.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found