UNSOLVED

thienhlt

updated

3 years ago

T

thienhlt

1 Rookie

1 Message

0

128

January 28th, 2024 16:25

Software caused connection abort: socket write error

I am getting error

RetryFilter - error received in response [java.net.SocketException: Software caused connection abort: socket write error], retrying (1 of 3)

when using S3JerseyClient and PutObjectRequest to upload file 

S3JerseyClient client = createS3Client();String fileCode =UUID.randomUUID();byte[] contentBytes = multipartFile.getBytes();ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(contentBytes);PutObjectRequest requestUpload = new PutObjectRequest(request.getBucketName(), fileCode, byteArrayInputStream).withObjectTagging(objectTagging).withObjectMetadata(metadata);requestUpload.addCustomHeader("x-amz-date", LocalDateTime.now(ZoneOffset.UTC).format(DateTimeFormatter.ofPattern("yyyyMMdd'T'HHmmss'Z'")));PutObjectResult result = client.putObject(requestUpload);​

why is dell emc ecs throwing java.net.SocketException: Software caused connection abort: socket write error