aws-sdk-js
aws-sdk-js copied to clipboard
SIGTERM error when calling adminCreateUser
Describe the bug
Facing SIGTERM error when trying to create user in cognito using CognitoIdentityServiceProvider.adminCreateUser function. This is happening randomly. Unable to log anything from this exception. This didn't work either of the below implementation.
cognitoIdentityProvider.adminCreateUser(cognitoParams, (error, data) => {
if (error) {
console.log('error in promise ', error);
return reject(error);
}
return resolve(data);
});
try {
let response = await cognito.adminCreateUser(cognitoParams).promise();
console.log(JSON.stringify(response, null, 2));
} catch((error)=>{
console.log(error
})
We are seeing this in Ubuntu only, In Mac OS its working without any issue.
Expected Behavior
Create user in Cognito
Current Behavior
SIGTERM error randomly
Reproduction Steps
This is happening randomly. Sample params object we are using
{
UserPoolId: "poolID",
Username: "[email protected]",
TemporaryPassword: "Password@1",
UserAttributes:
[
{ Name: "email", Value: "[email protected]" },
{ Name: "given_name", Value: "GivenName" },
{ Name: "family_name", Value: "FamilyName" },
{ Name: "email_verified", Value: "true" },
],
}
Possible Solution
No response
Additional Information/Context
No response
SDK version used
2.1108.0
Environment details (OS name and version, etc.)
Node(v14.17.3), Ubuntu