square / okhttp

Square’s meticulous HTTP client for the JVM, Android, and GraalVM.

Home Page:https://square.github.io/okhttp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stream was reset

SudoDios opened this issue · comments

i using AndroidNetworking library based on okhttp.
and upload a small file to server with and parameter.
but stream closed or stream was reset.
I tested with Postman and some other software and there was no problem.
can you help me?

{"errorCode":0,"errorDetail":"connectionError","cause":{"errorCode":0,"cause":{"errorCode":"NO_ERROR","detailMessage":"stream was reset: NO_ERROR","stackTrace":[]},"detailMessage":"okhttp3.internal.http2.StreamResetException: stream was reset: NO_ERROR","stackTrace":[]},"detailMessage":"ANError: okhttp3.internal.http2.StreamResetException: stream was reset: NO_ERROR","stackTrace":[]}

These errors are being sent by the server. You should check with whoever is running the server to explain the errors.
Although if the response if from the server as json, then it's something for them to investigate.

We can't provide 1:1 support, so please consider asking on a site like stackoverflow.