Error while getting the getCurrentUser if mobile is connected to network without internet #2292
Closed
2 of 13 tasks
Labels
auth
Issues related to the Auth Category
bug
Something is not working; the issue has reproducible steps and has been reproduced
fixed-in-release-candidate
Issues that have been addressed in the current release-candidate branch
Description
We are trying to call
Amplify.Auth.getCurrentUser()
, it works most of the times, but sometimes this is giving error. Below are the error detailsWe noticed that this is happening when mobile is connected to wifi but has no internet.
Categories
Steps to Reproduce
Amplify.Auth.getCurrentUser()
Screenshots
No response
Platforms
Android Device/Emulator API Level
No response
Environment
Dependencies
Device
iPhone XR
OS
iOS 16
Deployment Method
Custom Pipeline
CLI Version
No response
Additional Context
No response
Amplify Config
{
"UserAgent": "aws-amplify-cli/2.0",
"Version": "1.0",
"auth": {
"plugins": {
"awsCognitoAuthPlugin": {
"UserAgent": "aws-amplify/cli",
"Version": "0.1.0",
"IdentityManager": {
"Default": {}
},
"CognitoUserPool": {
"Default": {
"PoolId": "XXX",
"AppClientId": "XXX",
"AppClientSecret": "XXX",
"Region": "XXX"
}
},
"Auth": {
"Default": {
"authenticationFlowType": "XXX"
}
}
}
}
},
"api": {
"plugins": {
"awsAPIPlugin": {
"joyn-fdg-stage": {
"endpointType": "GraphQL",
"endpoint": "XXX",
"region": "XXX",
"authorizationType": "XXX"
},
"joyn2_AppSync_stageai": {
"endpointType": "GraphQL",
"endpoint": "XXX",
"region": "XXX",
"authorizationType": "XXX"
}
}
}
}
}
The text was updated successfully, but these errors were encountered: