-
Notifications
You must be signed in to change notification settings - Fork 583
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
Seems like the clients require ClientRequestToken to be set #4640
Comments
I can't exactly get my head around it, but it seems something is going wrong in the 'new' function This is from a debugging session, so it's not the typescript reference, but the
This is called while running the serializer middleware of the SDK. The intended use if I understand the MR that I linked above, is to put mapping functions in here. So However the 'instructions' given to the At least that's exactly what this test of the So I'm not entirely sure what's going on here, but it's not working as intended. This also makes me quite suspicious of a lot of other cases where this structure for defaulting stuff is used. |
My Jenkins Test Cases are failing but Test Cases are passing locally! Using version (https://www.npmjs.com/package/@aws-sdk/client-secrets-manager/v/3.310.0) |
@aman-codes1: this issue is about something that seems like a regression somewhere between Possible solution to your problemI have a hunch what your problem is: the error describes that it doesn't understand the So if it works locally, you are probably running Node 14+. Make sure that you are also using Node 14+ in your Jenkins instance as well. |
I have the same error on Node v18. Using @aws-sdk/client-secrets-manager@^3.315.0 |
Thanks @aukevanleeuwen for the quick solution. It started working. The issue is resolved now. |
Hi everyone, Thanks for letting us know. I've assigned this issue the highest priority and we will start investigating right away. Thanks, |
hi, I am preparing a fix for this issue now. For affected versions, please use this workaround importing a uuid generator: import { SecretsManager } from "@aws-sdk/client-secrets-manager";
import { v4 } from 'uuid';
const client = new SecretsManager({ region: "...." });
await client.createSecret({
Name: "secret-name",
ClientRequestToken: v4(),
SecretString: JSON.stringify({ secretValue: "secret-value" }),
}); |
a fix was released in https://www.npmjs.com/package/@aws-sdk/client-secrets-manager/v/3.316.0 |
Use a version that includes the fix: aws/aws-sdk-js-v3#4640
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. |
Checkboxes for prior research
Describe the bug
Updating sdk clients to latest version v3.315.0 started to fail with, but doesn't fail with v3.310.0 at least.
The error below is coming from
@aws-sdk/client-secrets-manager
, but might happen also for other clients.SDK version number
@aws-sdk/client-secrets-manager@3.315.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v18.12.1
Reproduction Steps
Observed Behavior
Expected Behavior
Expected behaviour is that
ClientRequestToken
is set by the sdk itself if is omitted.Possible Solution
No response
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: