-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
okhttp3.internal.http2.StreamResetException: stream was reset: INTERNAL_ERROR #3936
Comments
Typically error code is sent by a server to indicate a problem server-side. It could also happen if OkHttp’s stream reader crashes with an unexpected exception. Could you provide a standalone test case? As-is there’s no action we can take on this. |
A sample project to reproduce this error can be found here https://github.com/tobydigz/TestRetrofitApp What I know so far is that
I could also provide a base url if that's necessary, to help with pinpointing the error So dependencies used are
|
Is postman using HTTP/2? I think it's a server-triggered failure. |
I'm not sure but when I set Okhttp to use HTTP/1.1 I get End Of File Exception instead. |
Can you isolate the difference? Maybe send the C client’s headers with OkHttp? |
I am facing the same problem when the response code is 503. Postman and ios client do not get anything like this error. Client headers are the same. Can you explain "server-triggered" failure? |
What's the problem?? ... I can't find the solution. Using Http1.1 gets close error. |
I found that the server can't send all data properly. For instance, JSON isn't complete(the braces aren't closed properly at the end). It's server problem. I guess it's instance problem. the instance must have some limit for that. So, you need to enlarge the size. ex.
the rest of it is missing. UPDATEit was Nginx buffer size problem. If you are using AWS EC2, Go to
|
Seems like I'm getting the same error when trying to download with OkHttp from https://hg.openjdk.org/jdk-updates/jdk9u/archive/1b1226687b89.zip. Via Firefox the downloads works just fine. |
Api call with retrofit and rxandroid
Depencency used:
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation 'io.reactivex.rxjava2:rxjava:2.1.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.6.0'
Here is setup:
public static IAPIInterface getRestAdapterForRx() {
Mostly, API Call gives response but some time it give this error.
The text was updated successfully, but these errors were encountered: