You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.
I have an application that sends data to an API in a multipart post request. The application works properly throughout the day but it fails sometimes randomly or multiple times consecutively. The error log is as follows:
java.io.IOException: insufficient data written
at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.close(HttpURLConnection.java:3558)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1521)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:347)
at scalaj.http.HttpRequest.scalaj$http$HttpRequest$$doConnection(Http.scala:367)
at scalaj.http.HttpRequest.exec(Http.scala:343)
at scalaj.http.HttpRequest.asString(Http.scala:491)
That occurs at the line where the post request takes place which is:
I have an application that sends data to an API in a multipart post request. The application works properly throughout the day but it fails sometimes randomly or multiple times consecutively. The error log is as follows:
That occurs at the line where the post request takes place which is:
I haven't set context length anywhere for the post request and the failure happens randomly.
The text was updated successfully, but these errors were encountered: