Open fadone8 opened 3 months ago
@fadone8 - Thanks for taking the time to open this issue. It is expected that the event is received on all devices including the device that creates or updates the model.
For the issue you are seeing, can you let me know if you have enabled conflict resolution so that we can reproduce this? Thanks.
It error occurs only when an item is created in Amplify Studio manage content. The conflict resolution is disabled.
Okay. I am going to transfer this to Amplify Studio then. It seems like the issue is that models create in Amplify Studio are not getting all the required field.
@Jordan-Nelson Is there any solution ? I am also getting the error when I create something from Content in studio. Cannot return null for non-nullable type: 'AWSDateTime' within parent
Hello, so is there any solution ?
Description
I am getting the following error in
onUpdate
when subscribed to real-time events on bothonCreate
andonUpdate
. When an object is created, I am successfully receivingevent.data
inonCreate
subscription but I am receiving an error inonUpdate
subscription. Here is the error event inonUpdate
:Code:
Categories
Steps to Reproduce
onCreate
andonUpdate
on a model.onUpdate
subscription will receive the above error:Screenshots
No response
Platforms
Flutter Version
Flutter 3.22.1
Amplify Flutter Version
2.4.0
Deployment Method
Amplify CLI (Gen 1)
Schema
onUpdate
subscription is receiving thisevent
in the first place when an item is created only?createdAt
andupdatedAt
are helper fields and not explicitly overwritten. These fields are populated by Amplify.