minio / minio-js

MinIO Client SDK for Javascript
https://docs.min.io/docs/javascript-client-quickstart-guide.html
Apache License 2.0
920 stars 271 forks source link

fix: regression when listing buckets use the configured or default region #1282

Closed prakashsvmx closed 3 months ago

prakashsvmx commented 3 months ago

when listing buckets use the configured or default region

We fetch the region automatically only for buckets. so for listBuckets, either a region is required or use the default.

The latest version/master listBuckets does nor return any result . setting a default region would work as part of the client config.

var mc = new Minio.Client({
    endPoint: 'localhost',
    accessKey: 'minio',
    secretKey: 'minio123',
    useSSL: false,
    //partSize: 1024 * 1024 * 5,
    port: 22000,
    region:"us-east-1"
  })