8000 Region issue: not use the region specified. · Issue #38 · xtyxtyx/minio-dart · GitHub
[go: up one dir, main page]

Skip to content

Region issue: not use the region specified. #38

Open

Description

@Kakukaho
minio = Minio(
      endPoint: 's3.amazonaws.com',
      accessKey: 'xxx',
      secretKey: 'xxx',
      region: 'ap-northeast-1'
    );

MinioError: The authorization header is malformed; the region is wrong; expecting 'us-east-1'.

Activity

  1. anhthoai commented on Jun 5, 2022

    @anhthoai

    You need set endpoint is 's3-ap-northeast-1.amazonaws.com'

  2. arrrrny commented on Oct 22, 2026

    @arrrrny

    Fixed in the fork. Two things were wrong:

    • The endpoint table only knew a handful of regions. Every other region fell
      back to the global s3.amazonaws.com, and the global endpoint only accepts
      us-east-1 signatures — which is exactly the "the region is wrong;
      expecting 'us-east-1'" error. An unknown region now keeps its canonical
      regional host.
    • The configured region decided the host while the signature used a different
      one. Both now come from the same effective region, and if the server still
      rejects the request with AuthorizationHeaderMalformed and names the right
      region, the request is signed and addressed again with that region and the
      region is remembered for the bucket.

    Setting region: 'ap-northeast-1' with endPoint: 's3.amazonaws.com' now
    produces s3-ap-northeast-1.amazonaws.com, signed for ap-northeast-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