使用okhttp上传文件时,每次上传超过5M的文件就会失败, java.net.SocketException: sendto failed: EPIPE (Broken pipe)原因是okhttp的请求头RequestBody出现了问题 原代码:RequestBody requestBody = new MultipartBody.Builder().setType(MultipartBody.FORM).addFormDataPart("file", file.getName(), Re...
I'd be interested in understanding what types of exceptions you are seeing. Are they all the same as the one you included in this issue (e.g.java.net.SocketException: Broken pipe (Write failed)) or are there others? Do they differ by service?
I got the exception when using okhttp:2.4.0. java.net.SocketException: sendto failed: EPIPE (Broken pipe) at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:499) at libcore.io.IoBridge.sendto(IoBridge.java:468) at java.net.PlainS...
使用okhttp上传文件时,每次上传超过5M的文件就会失败, java.net.SocketException: sendto failed: EPIPE (Broken pipe)原因是okhttp的请求头RequestBody出现了问题 原代码:RequestBody requestBody = new MultipartBody.Builder().setType(MultipartBody.FORM).addFormDataPart("file", file.getName(), Re...
If I send a large POST request using OkHttp, but the server responds quickly with an error (e.g. permission denied) I get a java.net.SocketException: Broken pipe (Write failed)( status = 272 ) exception. Command line tools like curl seem to handle this case just fine and are able ...
java.net.SocketException: Broken pipe (Write failed) at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2711) at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2656) at org.apache.nifi.processors.standard.InvokeHTTP$...
[2/23/21 6:42:52:407 CET] 00000192 SystemOut O WebContainer : 3, Exception sending alert: java.net.SocketException: Broken pipe (Write failed) java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:221) ~[na:1.8.0] at java.net.SocketInputStrea...