aws-amplify / aws-sdk-android

AWS SDK for Android. For more information, see our web site:
https://docs.amplify.aws
Other
1.02k stars 548 forks source link

Getting java.net.UnknownHostException: Unable to resolve host "cognito-idp.us-east-1.amazonaws.com": No address associated with hostname in various Auth results #3371

Closed Gesraha101 closed 11 months ago

Gesraha101 commented 11 months ago

Describe the bug I have been getting java.net.UnknownHostException: Unable to resolve host "cognito-idp.us-east-1.amazonaws.com": No address associated with hostname exception in some Auth methods results (mainly Auth.fetchAuthSession since it is the most used one) in live reports. I could not reproduce this myself unfortunately. I even tried to do it by slowing down the network on an emulator, but it worked fine (with a delay of course but it did work). The recovery suggestion is "Sorry, we don't have a suggested fix for this error yet."

It is worth mentioning that I am using proguard with no rules made for amplify. I think I saw someone mentioning there should be some rules for it in an earlier search, but I cannot remember where.

Which AWS service(s) are affected? Amplify Auth

Expected behavior Expected to do intended behavior without the exception.

Screenshots N/A

Environment Information (please complete the following information):

mattcreaser commented 11 months ago

Duplicate of https://github.com/aws-amplify/amplify-android/issues/2542