Skip to content
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

CognitoClientException not throwing proper exception #81

Open
Sujal1 opened this issue Aug 24, 2020 · 0 comments
Open

CognitoClientException not throwing proper exception #81

Sujal1 opened this issue Aug 24, 2020 · 0 comments

Comments

@Sujal1
Copy link

Sujal1 commented Aug 24, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant