-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 not syncing when upgrade from aws-amplify 4.2.6 to 4.3.13 #9534
Comments
Hi @sacrampton 👋 thank you for raising this issue. Can you share what, if any, errors you might be seeing from the Amplify logger? Do you notice any particular differences between the models having issues and the ones that seem to sync properly? |
Piggybacking off of what Chris said above - If something is preventing the DataStore Sync Engine from starting correctly, the library will log out errors or warnings with additional information that will help us diagnose the problem. Please enable debug-level logging in your app via: import { Logger } from 'aws-amplify';
Logger.LOG_LEVEL = 'DEBUG'; and then share any relevant logs with us here. |
Hi @iartemiev / @chrisbonifacio It would appear that the latest version (4.3.13) is always using a page size of 1,000 regardless of what syncPageSize is set to. In the attached screen shots we identified an error from the logger showing it was ResolverExecutionLimitReached which we solved previously by setting syncPageSize = 500. So with this same setting in v4.2.6 we can see it is passing this limit of 500 - but with the same setting in v4.3.13 it is defaulting to 1,000 and ignoring syncPageSize setting of 500. |
That was very helpful. Thanks for sharing that info! I just opened a PR that fixes this: #9542 I will report back once the fix has been merged and released. |
@sacrampton the fix will be released tomorrow. I'll comment here as soon as the new version is out. |
@sacrampton we've released the fix as part of version 4.3.14 of Amplify. Please let us know if that resolves this issue for you. |
Thanks @iartemiev - can confirm that 4.3.14 fixes the issue in our app in both iOS and Android. |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
DataStore
Amplify Categories
api
Environment information
Describe the bug
We are trying to upgrade to aws-amplify and dependent libraries to the latest version.
Our app is working fine on aws-amplify@4.2.6 - but when we upgrade to the latest aws-amplify@4.3.13 many of our models are failing to sync with the mobile.
Similar issues seem to be mentioned in these issues:
Environment related information:
1- Project is created using cli.
2- "react": "17.0.2"
3- "react-native": "0.65.0"
4- "aws-amplify": "^4.3.13"
5- "@aws-amplify/datastore-storage-adapter": "^1.2.5"
Expected behavior
Sync completed on 4.3.13 as it does on 4.2.6
Reproduction steps
Upgrade then attempt to sync
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: