[GraphQLResponse.Error{message='Cannot return null for non-nullable type: 'AWSTimestamp' within parent 'Blog' #5886
Labels
datastore
Issues related to the DataStore Category
GraphQL API
Issues related to the API (GraphQL) Category
pending-maintainer-response
Pending response from a maintainer of this repository
pending-triage
This issue is in the backlog of issues to triage
to-be-reproduced
Issues that have not been reproduced yet, but have reproduction steps provided
i use flutter framework with amplify and when i built my app i face the this issue when i insert the the posts inside a Blog which they have one to many relationship
this happens when i add post inside the log
and the while the Blog is added successfully the Posts addition fails and the error appears
/////////////////////////////////////
the console logs
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/amplify:aws-datastore(17179): at java.lang.Thread.run(Thread.java:919)
I/amplify:aws-datastore(17179): Successfully removed from mutations outboxPendingMutation{mutatedItem=SerializedModel{id='d9d44936-9eee-4e55-b22a-1c93c74c3346', serializedData={createdAt=null, id=d9d44936-9eee-4e55-b22a-1c93c74c3346, blog=SerializedModel{id='9f7c596c-b50b-49ed-a94a-6b1f41d2227e', serializedData={id=9f7c596c-b50b-49ed-a94a-6b1f41d2227e}, modelName=Blog}, title=لللل, updatedAt=null}, modelName=Post}, mutationType=CREATE, mutationId=b14450dd-ddb8-11ef-aae8-31c86b5b7f2d, predicate=MatchAllQueryPredicate}
I/amplify:flutter:datastore(17179): Unhandled DataStoreHubEvent: outboxMutationFailed
I/amplify:flutter:datastore(17179): OutboxMutationFailedEvent{errorType=UNKNOWN, operation=CREATE, modelName=Post, model=SerializedModel{id='d9d44936-9eee-4e55-b22a-1c93c74c3346', serializedData={createdAt=null, id=d9d44936-9eee-4e55-b22a-1c93c74c3346, blog=SerializedModel{id='9f7c596c-b50b-49ed-a94a-6b1f41d2227e', serializedData={id=9f7c596c-b50b-49ed-a94a-6b1f41d2227e}, modelName=Blog}, title=لللل, updatedAt=null}, modelName=Post}}
E/amplify:flutter:datastore(17179): GraphQLResponseException{message=Mutation failed. Failed mutation = PendingMutation{mutatedItem=SerializedModel{id='d9d44936-9eee-4e55-b22a-1c93c74c3346', serializedData={createdAt=null, id=d9d44936-9eee-4e55-b22a-1c93c74c3346, blog=SerializedModel{id='9f7c596c-b50b-49ed-a94a-6b1f41d2227e', serializedData={id=9f7c596c-b50b-49ed-a94a-6b1f41d2227e}, modelName=Blog}, title=لللل, updatedAt=null}, modelName=Post}, mutationType=CREATE, mutationId=b14450dd-ddb8-11ef-aae8-31c86b5b7f2d, predicate=MatchAllQueryPredicate}. AppSync response contained errors = [GraphQLResponse.Error{message='Cannot return null for non-nullable type: 'AWSTimestamp' within parent 'Blog' (/createPost/blog/_lastChangedAt)', locations='null', path='[GraphQLPathSegment{value='createPost'}, GraphQLPathSegment{value='blog'}, GraphQLPathSegment{value='_lastChangedAt'}]', extensions='null'}, GraphQLResponse.Error{message='Cannot return null for non-nullable type: 'Int' within parent 'Blog' (/createPost/blog/_version)', locations='null', path='[GraphQLPathSegment{value='createPost'}, GraphQLPathSegment{value='blog'}, GraphQLPathSegment{value='_version'}]', extensions='null'}, GraphQLResponse.Error{message='Cannot return null for non-nullable type: 'AWSDateTime' within parent 'Blog' (/createPost/blog/createdAt)', locations='null', path='[GraphQLPathSegment{value='createPost'}, GraphQLPathSegment{value='blog'}, GraphQLPathSegment{value='createdAt'}]', extensions='null'}, GraphQLResponse.Error{message='Cannot return null for non-nullable type: 'ID' within parent 'Blog' (/createPost/blog/id)', locations='null', path='[GraphQLPathSegment{value='createPost'}, GraphQLPathSegment{value='blog'}, GraphQLPathSegment{value='id'}]', extensions='null'}, GraphQLResponse.Error{message='Cannot return null for non-nullable type: 'String' within parent 'Blog' (/createPost/blog/name)', locations='null', path='[GraphQLPathSegment{value='createPost'}, GraphQLPathSegment{value='blog'}, GraphQLPathSegment{value='name'}]', extensions='null'}, GraphQLResponse.Error{message='Cannot return null for non-nullable type: 'AWSDateTime' within parent 'Blog' (/createPost/blog/updatedAt)', locations='null', path='[GraphQLPathSegment{value='createPost'}, GraphQLPathSegment{value='blog'}, GraphQLPathSegment{value='updatedAt'}]', extensions='null'}], errors=[GraphQLResponse.Error{message='Cannot return null for non-nullable type: 'AWSTimestamp' within parent 'Blog' (/createPost/blog/_lastChangedAt)', locations='null', path='[GraphQLPathSegment{value='createPost'}, GraphQLPathSegment{value='blog'}, GraphQLPathSegment{value='_lastChangedAt'}]', extensions='null'}, GraphQLResponse.Error{message='Cannot return null for non-nullable type: 'Int' within parent 'Blog' (/createPost/blog/_version)', locations='null', path='[GraphQLPathSegment{value='createPost'}, GraphQLPathSegment{value='blog'}, GraphQLPathSegment{value='_version'}]', extensions='null'}, GraphQLResponse.Error{message='Cannot return null for non-nullable type: 'AWSDateTime' within parent 'Blog' (/createPost/blog/createdAt)', locations='null', path='[GraphQLPathSegment{value='createPost'}, GraphQLPathSegment{value='blog'}, GraphQLPathSegment{value='createdAt'}]', extensions='null'}, GraphQLResponse.Error{message='Cannot return null for non-nullable type: 'ID' within parent 'Blog' (/createPost/blog/id)', locations='null', path='[GraphQLPathSegment{value='createPost'}, GraphQLPathSegment{value='blog'}, GraphQLPathSegment{value='id'}]', extensions='null'}, GraphQLResponse.Error{message='Cannot return null for non-nullable type: 'String' within parent 'Blog' (/createPost/blog/name)', locations='null', path='[GraphQLPathSegment{value='createPost'}, GraphQLPathSegment{value='blog'}, GraphQLPathSegment{value='name'}]', extensions='null'}, GraphQLResponse.Error{message='Cannot return null for non-nullable type: 'AWSDateTime' within parent 'Blog' (/createPost/blog/updatedAt)', locations='null', path='[GraphQLPathSegment{value='createPost'}, GraphQLPathSegment{value='blog'}, GraphQLPathSegment{
The text was updated successfully, but these errors were encountered: