question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Region hardcoded in `listBuckets`

See original GitHub issue

The 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:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
prakashsvmxcommented, Jun 12, 2022

We will send a fix soon for using the configured region param. Thank you @louwers

1reaction
harshavardhanacommented, Jun 11, 2022

Yes this shouldn’t be hardcoded @louwers - we will fix it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found