AWS Cognito Android - Internal error on verifyAttribute api call

Viewed 295

I have successfully integrated the AWS Cognito functions in android app with help of compile 'com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.4.6'

SignUp and Login functions are working fine, but when I try to verify phone_number attribute then it gives Internal error.

What I have done

Step 1: getting verification code for phone_number attribute

user.getAttributeVerificationCodeInBackground("phone_number", new VerificationHandler() {
            @Override
            public void onSuccess(CognitoUserCodeDeliveryDetails verificationCodeDeliveryMedium) {

            }

            @Override
            public void onFailure(Exception exception) {
                LogHelper.printErrorLog(dataManager.formatException(exception));
            }
        });

and I am getting the verification code in my mobile as sms with 6 digit code.

Step 2: Submitting the verification code

user.verifyAttribute("phone_number", verificationCode, new GenericHandler() {
            @Override
            public void onSuccess() {

            }
            @Override
            public void onFailure(Exception exception) {
                LogHelper.printErrorLog(dataManager.formatException(exception));
                // here i am getting Internal Error
            }
        });

UPDATE

AWS Request ID: c41d7648-8891-11e7-9fa1-7762eecd6b9a

Region : N.Virginia (US East-1)

enter image description here

0 Answers
Related