Skip to content
This repository was archived by the owner on Oct 12, 2018. It is now read-only.
This repository was archived by the owner on Oct 12, 2018. It is now read-only.

Any documentation for PutItem? #55

@Jaafar-abusair

Description

@Jaafar-abusair

I'm trying to use PutItem like the following

var params = {
TableName: "

",
Item: {
userId: "1",
name: "jaafar"
}
};

AWSDynamoDB.PutItem(params).then((response) => {
  console.debug("Success");
  console.debug(response);
}).catch((error) => {
  console.debug("failed");
  console.debug(error);
});

and im getting this

{ [Error: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 64 path $.Item.]
04-27 13:35:19.832 6937 7049 D ReactNativeJS: framesToPop: 1,
04-27 13:35:19.832 6937 7049 D ReactNativeJS: code: 'EUNSPECIFIED',
04-27 13:35:19.832 6937 7049 D ReactNativeJS: line: 19400,
04-27 13:35:19.832 6937 7049 D ReactNativeJS: column: 29,
04-27 13:35:19.832 6937 7049 D ReactNativeJS: sourceURL: 'http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false' }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions