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

Tons of "REFUSED_STREAM caused by: okhttp3.internal.http2.StreamResetException: stream was reset #240

Closed
sranka opened this issue Jul 7, 2021 · 0 comments · Fixed by #241
Milestone

Comments

@sranka
Copy link
Contributor

sranka commented Jul 7, 2021

This defect was created in response to
https://github.com/influxdata/EAR/issues/2223

Getting tons of "REFUSED_STREAM caused by: okhttp3.internal.http2.StreamResetException: stream was reset: REFUSED_STREAM" errors in our application during standard reads some small percentage of the time (but thousands over about a month).

The defect indeed comes from the underlaying okhttp client library : square/okhttp#3955 . Going through all described occurrences of the same error, I think that we should better configure the client to use okhttp with HTTP 1.1 OOTB until a solution to square/okhttp#3955 is found. The customer reported that

options.getOkHttpClient().protocols(Collections.singletonList(Protocol.HTTP_1_1))

worked immediately, the errors dropped to 0.

Specifications:

  • Client Version: any with okhttp 4.7.2
@bednar bednar added this to the 3.1.0 milestone Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants