You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
------------------------------------------------------------
Gradle 8.7
------------------------------------------------------------
Build time: 2024-03-22 15:52:46 UTC
Revision: 650af14d7653aa949fce5e886e685efc9cf97c10
Kotlin: 1.9.22
Groovy: 3.0.17
Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM: 1.8.0_131 (Azul Systems, Inc. 25.131-b11)
OS: Mac OS X 10.16 x86_64
Please include any relevant guides or documentation you're referencing
I have been getting java.net.UnknownHostException: Unable to resolve host "cognito-idp.ap-south-1.amazonaws.com": No address associated with hostname, recoverySuggestion=Sorry, we don’t have a recovery suggestion for this error. exception while trying to develop a mobile application while executing Step 6(Implement login UI).
Sorry if this sounds like a simple question, but does your device have internet connection? UnknownHostException will be seen when the device is completely disconnected from internet.
Another issue could be that the device time is set incorrectly, proxy is blocking url, etc.
If none of these issues are present, please reply with the amplify version being used, and code snippets to how Amplify is being configured and login code being used.
@Manav122000 Were you able to resolve your issue? A couple clarification questions, is your amplify configuration file named amplifyconfiguration.json or amplify_outputs.json? Based on the content and format, it appears to be the amplify_outputs.json, so it should be named correctly and passed into the Amplify like so Amplify.configure(AmplifyOutputs( R.raw.amplify_outputs), applicationContext)
Also, it looks like the configuration is missing two fields. Can you regenerate or download the last amplify_outputs file and make sure it's up to date and has the following fields for auth? "mfa_methods": [], "mfa_configuration": "OFF",
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Before opening, please confirm:
Language and Async Model
Kotlin
Amplify Categories
Authentication
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
#2542
Describe the bug
I have been getting
java.net.UnknownHostException: Unable to resolve host "cognito-idp.ap-south-1.amazonaws.com": No address associated with hostname, recoverySuggestion=Sorry, we don’t have a recovery suggestion for this error.
exception while trying to develop a mobile application while executing Step 6(Implement login UI).Reproduction steps (if applicable)
No response
Code Snippet
Log output
amplifyconfiguration.json
GraphQL Schema
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: