Skip to content

You did not provide the number of bytes specified by the Content-Length HTTP header. #21425

@kreuzerkrieg

Description

@kreuzerkrieg

We are randomly and quite rarely getting this error in our CI

boto3.exceptions.S3UploadFailedError: Failed to upload /some/path/object.bin to /some/other/path/object.bin: An error occurred (IncompleteBody) when calling the PutObject operation: You did not provide the number of bytes specified by the Content-Length HTTP header.

It was observed with other clients too, not just boto and it happens only for the PUT requests and of course it is not reproducible :(
Any idea what could possibly cause this hiccup and how to solve it?

Your Environment

  • Version used (minio --version): minio version RELEASE.2025-06-13T11-33-47Z (commit-id=a6c538c5a113a588d49b4f3af36ae3046cfa5ac6)
    Runtime: go1.24.4 linux/amd64
    License: GNU AGPLv3 - https://www.gnu.org/licenses/agpl-3.0.html
    Copyright: 2015-2025 MinIO, Inc.
  • Server setup and configuration:
  • Operating System and version (uname -a): Linux 6.14.5-100.fc40.x86_64 Full restructure in accordance with #1 SMP PREEMPT_DYNAMIC Fri May 2 14:22:13 UTC 2025 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions