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.3.0"
Environment information
# Put output below this line
Gradle 8.9
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
When steps described below are followed, only ambigious "Sorry, something went wrong" -message is shown to the user by Amplify-UI i.e. the Application does not get to show any content at all. Furthermore, the only way to recover from this state is to set the device back online and then killing the app and launching it again.
With AndroidLoggingPlugin enabled I can see the following exception in Logcat: InvalidUserPoolConfigurationException, which seems incorrect.
Reproduction steps (if applicable)
Sign-in to the App
Set device offline
Kill the App
Wait for access token to expire
Launch the App
Code Snippet
// Put your code below this line.
Log output
// Put your logs below this line
RefreshUserPoolTokens Sending event ThrowError
Auth State Change: Configured(authNState=SignedIn(signedInData=SignedInData(userId=<userId>, username=<username>, signedInDate=Thu Nov 28 07:56:43 GMT+02:00 2024, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***)), deviceMetadata=com.amplifyframework.statemachine.codegen.data.DeviceMetadata$Empty@d223312), authZState=Error(exception=SessionError(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, amplifyCredential=UserPool(signedInData=SignedInData(userId=<userId>, username=<username>, signedInDate=Thu Nov 28 07:56:43 GMT+02:00 2024, signInMethod=ApiBased(authType=USER_SRP_AUTH), cognitoUserPoolTokens=CognitoUserPoolTokens(idToken = eyJra***, accessToken = eyJra***, refreshToken = eyJjd***))))))
InvalidUserPoolConfigurationException{message=The user pool configuration is missing or invalid., cause=null, recoverySuggestion=Please check the user pool configuration in your amplifyconfiguration.json file.}
amplifyconfiguration.json
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered:
Thanks for the report @pmellaaho. It looks like Amplify cannot refresh the tokens because the device is offline, but is returning an incorrect error - we'll have to investigate on the Amplify side for that.
For Authenticator there are two things to look at here:
Although the access token is expired, the user is still "signed in" so it should be able to go to the signed-in state.
There should probably be a retry button on the general exception UI so that user could recover if the device comes back online.
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
When steps described below are followed, only ambigious "Sorry, something went wrong" -message is shown to the user by Amplify-UI i.e. the Application does not get to show any content at all. Furthermore, the only way to recover from this state is to set the device back online and then killing the app and launching it again.
With AndroidLoggingPlugin enabled I can see the following exception in Logcat:
InvalidUserPoolConfigurationException, which seems incorrect.
Reproduction steps (if applicable)
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: