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

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 opened this issue Jul 31, 2023 · 1 comment

Comments

@Gesraha101
Copy link

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):

  • AWS Android SDK Version: 2.8.7
  • Device: Normal distribution among all devices (Xiaomi, Samsung, Oppo are the top ones)
  • Android Version: Normal distribution among android versions
  • Specific to simulators: No
@mattcreaser
Copy link
Member

Duplicate of aws-amplify/amplify-android#2542

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

2 participants