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

Any documentation for PutItem? #55

Open
Jaafar-abusair opened this issue Apr 27, 2017 · 0 comments
Open

Any documentation for PutItem? #55

Jaafar-abusair opened this issue Apr 27, 2017 · 0 comments

Comments

@Jaafar-abusair
Copy link

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' }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant