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
// Put output below this line
authenticatorVersion ="1.1.0"
Environment information
# Put output below this line
Gradle 8.6
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
The Authenticator is showing wrong error message's when e.g. device is offline and user tries to Sign-in. In can see that there is a valid text ("Please check your connectivity") defined for these cases but it just isn't used. It seems that AuthenticatorViewModel is mapping UnknownHostException -cause to the this error message but for some reason the mapping code doesn't work and ambigious "Sorry, something went wrong" -message is shown to the user. With AndroidLoggingPlugin enabled I can see the following lines in Logcat:
Auth State Change: Configured(authNState=SigningIn(signInState=SigningInWithSRP(srpSignInState=Error(exception=aws.smithy.kotlin.runtime.http.HttpException: java.net.UnknownHostException: Unable to resolve host "cognito-idp.eu-central-1.amazonaws.com": No address associated with hostname))), authZState=SigningIn(id=)) Auth State Change: Configured(authNState=SignedOut(signedOutData=SignedOutData(lastKnownUsername=null, hostedUIErrorData=null, globalSignOutErrorData=null, revokeTokenErrorData=null)), authZState=Configured(id=))
Reproduction steps (if applicable)
No response
Code Snippet
// Put your code below this line.
Log output
// Put your logs below this line
Auth State Change: Configured(authNState=SigningIn(signInState=SigningInWithSRP(srpSignInState=Error(exception=aws.smithy.kotlin.runtime.http.HttpException: java.net.UnknownHostException: Unable to resolve host "cognito-idp.eu-central-1.amazonaws.com": No address associated with hostname))), authZState=SigningIn(id=))
Auth State Change: Configured(authNState=SignedOut(signedOutData=SignedOutData(lastKnownUsername=null, hostedUIErrorData=null, globalSignOutErrorData=null, revokeTokenErrorData=null)), authZState=Configured(id=))
amplifyconfiguration.json
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered:
Looks like Authenticator is looking for a direct cause of UnknownHostException, but there's an extra layer of HttpException wrapping the UnknownHostException. Authenticator should search through the causes instead of only looking one level deep.
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 creating a new issue, please confirm:
Which UI component?
Authenticator
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
The Authenticator is showing wrong error message's when e.g. device is offline and user tries to Sign-in. In can see that there is a valid text ("Please check your connectivity") defined for these cases but it just isn't used. It seems that AuthenticatorViewModel is mapping UnknownHostException -cause to the this error message but for some reason the mapping code doesn't work and ambigious "Sorry, something went wrong" -message is shown to the user. With AndroidLoggingPlugin enabled I can see the following lines in Logcat:
Auth State Change: Configured(authNState=SigningIn(signInState=SigningInWithSRP(srpSignInState=Error(exception=aws.smithy.kotlin.runtime.http.HttpException: java.net.UnknownHostException: Unable to resolve host "cognito-idp.eu-central-1.amazonaws.com": No address associated with hostname))), authZState=SigningIn(id=)) Auth State Change: Configured(authNState=SignedOut(signedOutData=SignedOutData(lastKnownUsername=null, hostedUIErrorData=null, globalSignOutErrorData=null, revokeTokenErrorData=null)), authZState=Configured(id=))
Reproduction steps (if applicable)
No response
Code Snippet
// Put your code below this line.
Log output
amplifyconfiguration.json
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: