#✅ - SwiftUI Amplify DataStore Error Help

6 messages · Page 1 of 1 (latest)

winged pelican
#

The try await line produces output:

Saved item: Item(id: "AA3D58FA-C4BA-463D-96D7-44E9AB819CD3", access_token: Optional("xxx"), item_id: Optional("xxx"), account_id: Optional("xxx"), ProfitLosses: nil, createdAt: nil, updatedAt: nil)

Which is correct, but does not store the data into the dynamoDB

winged pelican
#

Found this in the CloudWatch Logs:

GraphQL Query: mutation CreateItem($input: CreateItemInput!) {
  createItem(input: $input) {
    id
    access_token
    account_id
    createdAt
    item_id
    updatedAt
    __typename
    _version
    _deleted
    _lastChangedAt
  }
}, Operation: null, Variables: 
{
    "input": {
        "access_token": "...",
        "item_id": "...",
        "account_id": "...",
        "id": "...."
    }
}
#

Unsure if this is related, but in CloudTrail I am getting:
CreateBackendAPI","status":"FAILED",

torpid badge
#

Hi @winged pelican are you still running into this issue?

winged pelican
#

@torpid badge I was still having the issue unfortunately. What I decided to do was create a dynamoDB table myself and use a rest api/Lambda function generated by amplify to interact with the DB

jagged dewBOT
#

✅ - SwiftUI Amplify DataStore Error Help