-
Notifications
You must be signed in to change notification settings - Fork 238
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
Failed to Sync with Amplify Content #2137
Comments
Hello @Intelbis - Have you made updates to your schema? If so, have you run |
Same issue here : My schema
If I modify the trip from amplify studio i get this error:
|
@egyangel - If you are manipulating data in amplify studio, all records need to have the appropriate meta data fields (version, createdAt, updatedAt). It looks like lastUpdatedAt is null. I do not recall off the top of my head if studio will add these fields when adding a new record. You may need to add them manually. Do you mind opening a separate issue for this? It sounds like it could be a separate issue that we need to sync with the studio team on. |
Hi Jordan, Yes i have run the sudo amplify codegen models & sudo amplify push commands prior to running the app. My model name has been renamed to Enquiries from Todos. Also I have wiped the data from the android emulator and ran the app again. Same issue.. |
Can you share your schema? |
hi Jordan my schema.graphql is type Enquiry @model @auth(rules: [{allow: owner}, {allow: public}, {allow: private}, {allow: private, provider: iam}]) { many thanks! |
Hi @Intelbis |
@Intelbis - The log indicates that there is a model with a null value for noBedrooms. Is there a model saved in dynamo that is missing this field? Can you see what data is saved via the AWS console? |
Hi where to find this information? I just went to dynamoDB through aws console there’s nothing. Tables are empty. No tables found it says |
If it is showing no tables, it may be displaying info for a different AWS region than where your app I located. You can select this in the top right of the console. Can you confirm you are viewing tables for the same region as your app? |
Hi Jordan now I can see the tables. But where can I find the fields here. |
If you click on the table name (I think you want to the third table in that list) there should be a button in the top right that says "Explore Table Items" |
Hi Jordan after exporting those items and running project again seemed to resolve the conflict. It works now. |
Okay great, I am glad you were able to resolve the issue. I will close this issue out. For anyone facing this issue in the future, it looks like this may have been caused by the null fields after the schema was updated to make them non-null. |
Description
I have successfully initiated amplify Auth ui and crud operations following the Amplify doc for Todo form.
Todo form saves inside the app locally and there are no errors in runtime but it ends with "Orchestrator transitioning from SYNC_VIA_API to LOCAL_ONLY" "Setting currentState to LOCAL_ONLY" "Stopped subscription processor." "No more active subscriptions. Closing web socket."
And the data is not synced to the cloud and it says Failed to sync
Categories
Steps to Reproduce
Sample App:
Screenshots
No response
Platforms
Android Device/Emulator API Level
API 32+
Environment
Dependencies
Device
Macbook
OS
15.1
Deployment Method
Amplify CLI
CLI Version
9.1.0
Additional Context
App Log:
Amplify Config
The text was updated successfully, but these errors were encountered: