Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PUT list of dicts #49

Open
Katafalkas opened this issue Nov 10, 2014 · 2 comments
Open

PUT list of dicts #49

Katafalkas opened this issue Nov 10, 2014 · 2 comments

Comments

@Katafalkas
Copy link

Hey,

According to http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html it should be possible to PUT a list of dicts to data store. Currently it does not seem to work for me:

var item = { one: 'test2',
               two: 'Kapow',
               usr: 'spolu',
               lng: ['node', 'c++'],
               mew: [
                 {'foo': 'blue', 'w': 1, 't': 2},
                 {'foo': 'red', 'w': 11, 't': 22}
               ]
  };

ddb.putItem('foobar', item, {}, function(err, res, cap) {});

i get the error:

ERR { [Error: PutItem [400]: One or more parameter values were invalid: An number set  may not be empty]

  statusCode: 400,

  requestId: 'MUFRMIPBFI6VVAR1R408KLGS0RVV4KQNSO5AEMVJF66Q9ASUAAJG',

  code: 'ValidationException',

  data: 

   { __type: 'com.amazon.coral.validate#ValidationException',

     message: 'One or more parameter values were invalid: An number set  may not be empty' } }

This is duplicate question from google groups that I posted.

@spolu
Copy link

spolu commented Nov 10, 2014

Hi @Katafalkas we're unfortunately not maintaining that repo currently. DynamoDB did change their APIs recently. Maybe you can issue a PR?

@ejames17
Copy link

Hi @Katafalkas how did you resolve this issue? Im currently facing the same thing

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

No branches or pull requests

3 participants