-
Notifications
You must be signed in to change notification settings - Fork 253
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
DataStore IrRecoverableException on Android #3658
Comments
The exception you are seeing indicates that AppSync returned no data and no errors. It is expected that AppSync will always return one or the other. I am not sure what would cause this to occur. How was the back end created (with the Amplify cli, or through some other means)? Do you have conflict resolution enabled? Have you (recently, or previously) made changes to the back end to either change the schema or enable/diable conflict resolution? Do you use any custom resolvers? |
Some data sync successfully but when IrRecoverableException occurs then sync stop immediately. |
hi @Jordan-Nelson for now imo it's critical issue, because I cannot sync my datastore on Android without clear it.
|
@wojciechzahradnikdeviniti - Are you able to reproduce consistently? Are you able to capture the network requests/responses when this occurs? The requests are made from the native Android layer, so they will not show in the Dart dev tools. You could use a tool like Charles proxy to capture them. |
I'm getting the same issue occasionally when I disconnect and connect the Android device to the internet
|
@Jordan-Nelson
I have an index created using amplify cli in my Appsync schema model (dynamodb table) when datastore tries to sync the delta using the lastSync value I get the error |
@ridakaddir - Is that only response with an error? Do any responses have null/empty data and null/empty errors? |
I have an index created using amplify cli in my Appsync schema model (dynamodb table) when datastore tries to sync the delta using the lastSync value I get the error The table does not have the specified index |
@ridakaddir - Can you confirm this result is the exception you shared in the log above ( |
Yes, this happened only on the delta sync because the data I got from AppSync in null with errors. The delta sync creates a query like
this query sends the lastSync datetime saved in the local DB. the response
if I send the same query again but with lastSync value set to null. the query works |
I am having the same problem described here aws-amplify/amplify-android#2564 after approximately 25 minutes the same query with the same lastSync value works. |
@Jordan-Nelson |
@ridakaddir - Thanks for letting me know. If you are able to reproduce that, you can open an issue in https://github.com/aws-amplify/amplify-cli to figure out why that happened. |
@ridakaddir - Just to confirm, you are no longer seeing any issue during delta sync? |
After manually creating the index for the delta table, the delta API returned the correct data, and the issue with the datastore error was resolved |
@wojciechzahradnikdeviniti - Are you able to capture the network request as mentioned here? |
@Jordan-Nelson I'm not able to catch that |
I caught the same error in Android Studio as @ridakaddir :
|
@wojciechzahradnikdeviniti - Thanks for providing that. I have marked this as a bug for now. Please follow aws-amplify/amplify-category-api#1853 for updates. |
@wojciechzahradnikdeviniti @ridakaddir - Would either of you being able to confirm that you do not see any issues with delta sync on iOS, even when running the app from Xcode? You may see additional logs when running from Xcode compared to from VSCode/Android studio or |
On iOS I have also problems with sync using DataStoreSyncExpression and model indexes. IMO this issue can be connected but I cannot see any logs in VSCode. |
The only logs I get on iOS
|
Please see the comment posted here for a workaround. |
Hello @wojciechzahradnikdeviniti - Closing this out as it looks like aws-amplify/amplify-category-api#1853 is resolved. For anyone else facing this issue, please refer to aws-amplify/amplify-category-api#1853. |
Description
Hi, on Android when I have already some data in the DataStore and sync is doing updates and some data sync successfully then this error occurs (each time with different model). On iOS it works fine.
I'm creating a new issue according to @Jordan-Nelson comment.
#3580
aws-amplify/amplify-android#2471
Categories
Steps to Reproduce
No response
Screenshots
No response
Platforms
Flutter Version
3.10.6
Amplify Flutter Version
1.4.0
Deployment Method
Amplify CLI
Schema
The text was updated successfully, but these errors were encountered: