8000 Facing issue on MInio with S3? · Issue #24 · xtyxtyx/minio-dart · GitHub
[go: up one dir, main page]

Skip to content

Facing issue on MInio with S3? #24

Open

Description

@ramsmartdev

I tried it but it shows the assert(size) issue.

Activity

  1. jtkeyva commented on Sep 12, 2021

    @jtkeyva

    same here

  2. arrrrny commented on Oct 22, 2026

    @arrrrny

    Upstream's assert(size) was a leftover: putObject already rejected a
    negative size with a MinioInvalidArgumentError before that line was
    reached, so the assert could never fire — and an assert only exists in debug
    builds anyway, so it would not have helped in a release build either.

    The fork removes the leftover assert and checks the argument in every build.
    A negative size is rejected with a clear error:

    minio.putObject('bucket', 'object', data, size: -1);
    // MinioInvalidArgumentError: invalid size value: -1
  3. arrrrny commented on Oct 22, 2026

    @arrrrny

    This ships in zuraffa_minio — the maintained fork of this package, which upstream has not touched since August 2025.

    The fork keeps the API of the original package unchanged, so moving over is an import swap:

    // before
    import 'package:minio/minio.dart';
    // after
    import 'package:zuraffa_minio/minio.dart';

    Source, the changelog and the sweep of the open issues of this tracker: https://github.com/arrrrny/zuraffa_minio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0