amazon-cognito-identity-dart icon indicating copy to clipboard operation
amazon-cognito-identity-dart copied to clipboard

CognitoClientException not throwing proper exception

Open Sujal1 opened this issue 5 years ago • 0 comments

Sometimes when I try to authenticate user, with my network turned off, I get the following error (and it takes around 1-2 minutes to get this error): CognitoClientException {statusCode: null, code: Unknown error, name: null, message: Unknown Error}

Then again, if I try immediately, I get the following error (as desired): CognitoClientException{statusCode: null, code: NetworkError, name: null, message: Failed host lookup: 'cognito-......'}

How can this Unknown error be resolved?

Sujal1 avatar Aug 24 '20 08:08 Sujal1