You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i call the createKeyringNode API with the arn url, i got below error instead of creating of keyring node.
"Cannot convert object to primitive value"
The KmsKeyringNode API is being called with a KMS ARN as an argument.
I would like to inquire whether issues like this can occur if the KMS configuration is incorrect, or if there are other potential causes for such errors.
Thanks for advance
my-code
async function createKeyringNode(){
try{
/* Create an AWS KMS keyring */
const keyring = new KmsKeyringNode({
process.env.KMS_CMK,
});
return keyring;
} catch(error) {
logger.error(error);
}
}
The text was updated successfully, but these errors were encountered:
package version: "@aws-crypto/client-node": "^3.1.1",
when i call the createKeyringNode API with the arn url, i got below error instead of creating of keyring node.
"Cannot convert object to primitive value"
The KmsKeyringNode API is being called with a KMS ARN as an argument.
I would like to inquire whether issues like this can occur if the KMS configuration is incorrect, or if there are other potential causes for such errors.
Thanks for advance
my-code
async function createKeyringNode(){
try{
/* Create an AWS KMS keyring */
const keyring = new KmsKeyringNode({
process.env.KMS_CMK,
});
return keyring;
} catch(error) {
logger.error(error);
}
}
The text was updated successfully, but these errors were encountered: