Retrofit POST java.io.IOException: unexpected end of stream on Connection caused by java.io.EOFException: \n not found:
问题 I have went through all the question related to this and yet, I haven't found a solution that works for me. Im using retrofit 2.8.1 and OkHttp 4.5.0 . My service interface looks like the following public interface MlApiService { @POST @Multipart Call<List<PreprocessedDocument>> postDocument( @Url String apiUrl, @Part MultipartBody.Part document, @Part ( "document_id") RequestBody documentId ); } And I build the client like the following with requestTimeoutInSeconds set to 90 seconds. public