Region hardcoded in `listBuckets`
See original GitHub issueThe authorization header is malformed; the region ‘us-east-1’ is wrong; expecting ‘nl-ams’.
Trying to connect to Scaleway S3-compastible storage. When I specify a region
property or leave it out, I get:
S3Error: The authorization header is malformed; the region ‘us-east-1’ is wrong; expecting ‘nl-ams’
See code below.
import { Client } from "minio";
const minioClient = new Client({
endPoint: "xxx.s3.nl-ams.scw.cloud",
port: 443,
useSSL: true,
accessKey: "xxx",
secretKey: "xxx",
});
(async function run() {
await minioClient.listBuckets();
})();
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Creating and using Amazon S3 buckets with the AWS SDK for ...
First create an AWS.S3 client service that specifies the AWS Region and version. Then call the listBuckets method, which returns all Amazon S3...
Read more >Making My First listObjects from Amazon S3 - Stack Overflow
Here's what I've done so far. Setup S3 with a free account, hardcoded my access keys with
Read more >Amazon S3 multi-Region client with Amazon SDK for PHP ...
Create a multi-region Amazon S3 client using the Amazon SDK for PHP Version 3 . ... Get the contents of a bucket $objects...
Read more >Node.js AWS SDK: How to list all the keys of a large S3 bucket?
The AWS SDK for Node.js provides a method listObjects but that ... of AWS but you can change that to the region where...
Read more >Backend Type: s3 | Terraform - HashiCorp Developer
This backend requires the configuration of the AWS Region and S3 state storage. ... If you use -backend-config or hardcode these values directly...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We will send a fix soon for using the configured region param. Thank you @louwers
Yes this shouldn’t be hardcoded @louwers - we will fix it.