Getting "Cannot return null for non-nullable type: 'AWSDateTime' within parent" #1111
Open
2 of 14 tasks
Labels
pending-triage
An issue that is pending triage
transferred
An issue was transferred from another Amplify Repository
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.The text was updated successfully, but these errors were encountered: