-
Notifications
You must be signed in to change notification settings - Fork 247
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 cloud sync JsonSyntaxException #3472
Comments
Same error for me. Android version 12 amplify_datastore: ^1.3.0 my schema has custom fields { and gets this error on create new item operation: E/amplify:aws-datastore(27314): Error ended observation of mutation outbox: This operation worked with the mobile+0 development version |
Thank you for the feedback, @jamontesg. We are currently investigating this issue and believe there is a bug in the Android library. I will keep this ticket updated as we learn more. |
Fixes: aws-amplify/amplify-flutter#3472, aws-amplify/amplify-flutter#3482 The issue of ser/deseralizing custom types was partially fixed by #2350. However, once this was released, customers quickly noticed new issues. The prior fix did not handle arrays of custom types which this PR addresses.
Fixes: aws-amplify/amplify-flutter#3472, aws-amplify/amplify-flutter#3482 The issue of ser/deseralizing custom types was partially fixed by #2350. However, once this was released, customers quickly noticed new issues. The prior fix did not handle arrays of custom types which this PR addresses.
A fix for this has been merged in the Amplify Android repo: aws-amplify/amplify-android#2545 We will get this fix released as soon as possible. |
Any date for this release? |
The fix for this has been released in v1.3.2. Thank you for your patience resolving this and please let us know if you continue to face issues. |
Description
This issue follows a previous one (#2710 ) .
A previous fix has been released (https://github.com/aws-amplify/amplify-flutter/releases/tag/v0.6.14) but a new exception appears.
The context is the same, I use a Models where fields are basics type (String, Int, etc..) provided by Amplify Studio, but, there are also "Custom Types", wich are simply classical models without default ID and relationnal options.
This is a snippet of one of my classical models:
As you can see, there is a "Custom Type" field called "Weight" wich is the following:
From there, before the (https://github.com/aws-amplify/amplify-flutter/releases/tag/v0.6.14) fix (that is also availbale in the latest amplify flutter version 1.2.1 #2710 (comment) ), the issue was that when I saved a Model wich contains custom type offline, and then syncing it online, it wasn't working.
Now, when I save a Model wich contains a custom type, independamently of online or offline save, it's not working at all and throw this exception:
I don't know if it is related, but at the application launch, datastore print the same message mulitple times:
I might change my custom type for classic models because it occurs too much issues with Datastore & Appsync within a Flutter app atm.
PS: I mark IOS & Android as Platform because I use Flutter, but I work on a Android device so I don't know if the same issue occurs on IOS devices AND I use the amplify_datastore ^1.2.0-supports-only-mobile+1
Categories
Steps to Reproduce
Screenshots
No response
Platforms
Flutter Version
3.10.0
Amplify Flutter Version
1.2.1
Deployment Method
Amplify CLI
Schema
The text was updated successfully, but these errors were encountered: