com.amazonaws.services.s3.model.AmazonS3Exception

java.io.IOException: Content-Length mismatch, actual: 244334 expected: 244068 (Service: Amazon S3; Status Code: 500; Error Code: 500 java.io.IOException: Content-Length mismatch, actual: 244334 expected: 244068; Request ID: null)

Samebug tips1

Set the S3 bucket to the same region as AmazonS3Client, otherwise it just throws this exception. Check if your bucket name is correct as well.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web181

  • via Stack Overflow by Rajkumar Natarajan
    ,
  • Stack trace

    • com.amazonaws.services.s3.model.AmazonS3Exception: java.io.IOException: Content-Length mismatch, actual: 244334 expected: 244068 (Service: Amazon S3; Status Code: 500; Error Code: 500 java.io.IOException: Content-Length mismatch, actual: 244334 expected: 244068; Request ID: null) at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1378) at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:924) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:702) at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:454) at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:416) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:365) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3995) at com.amazonaws.services.s3.AmazonS3Client.doUploadPart(AmazonS3Client.java:3029) at com.amazonaws.services.s3.AmazonS3Client.uploadPart(AmazonS3Client.java:3014)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    tvrmsmithtvrmsmith
    Once,
    Julien SaabJulien Saab
    2 times, last one
    Unknown UserUnknown User
    48 times, last one
    aldrinlealaldrinleal
    Once,
    Unknown visitor
    Unknown visitorOnce,
    50 more bugmates