-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1.0.0-gamma.7 / #1420 causes Region is missing
errors
#1466
Comments
Hi @roderik I can reproduce this issue. The issue is caused by the default region provider of the clients. We will fix this issue shortly, for now you can keep on gamma.6 version. Here's the root cause: S3 loads the region from local INI files and environment variables by default: aws-sdk-js-v3/clients/client-s3/runtimeConfig.ts Lines 31 to 32 in 5478012
If you provide a aws-sdk-js-v3/packages/property-provider/src/memoize.ts Lines 41 to 50 in 47770fa
However, the expected behavior of |
This fix has been merged into master. For now, as a workaround, you can set the region before instantiate the client, like: process.env.AWS_REGION = "us-west-2";
const client = new S3({
credentials: {
accessKeyId: "***",
secretAccessKey: "***"
}
});
await client.putObject(params); |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Describe the bug
v1.0.0-gamma.7 and presumably #1420 broke perfectly working S3 client implementation.
Reverting back to gamma.6 makes these errors go away.
The code we use to initialize S3 is
SDK version number
v1.0.0-gamma.7
Is the issue in the browser/Node.js/ReactNative?
Node.js
Details of the browser/Node.js/ReactNative version
v14.7.0
The text was updated successfully, but these errors were encountered: