-
Notifications
You must be signed in to change notification settings - Fork 125
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
MissingRequiredParameter: Missing required key 'RequestItems' in params #166
Comments
@ryanfitz Can you please support for this issue, It occurs randomly when have bulk of data. Scenario :- Total records : 5000 so by aws standards we are using batch get 100 items in loop. |
@avtaniket you should provide more information about the table schema. This is from the documentation of Vogels: However if you are dumping all the 5000 records i think you should use different approach like |
Thanks for quick reply, Yes, I understand size issue so I also tried with passing array of 50 IDs For your kind info, I have property information in table where property ID Does Vogels.getItems() uses different method than whats document in AWS Can't use scan as want to get bulk records by hask key (property id) Suggestions are welcome... Aniket Takarkhede
|
Please double check that you don't have any NULL or empty values in you You may check the values in |
I think the problem here is that BatchGetItems just doesn't work for >1mb results. The problem is in the code here: After you get UnprocessedKeys (due to 1mb limit), it tries to request further results automatically. However it doesn't build the subsequent request properly, as you can see here: Original Request:
subsequent ones:
|
@RodH257 Yes, I think you have correctly pointed out issue. Alternate solution we did was, chunk records in smaller size and did loop to fetch all records. |
Cool, I've added an issue on Dynogels (actively maintained fork of this repo) and submitted a PR there: clarkie/dynogels#78 |
Hello Geeks,
When performing batch get items in loop for cron jobs, we are getting below error
{ [MissingRequiredParameter: Missing required key 'RequestItems' in params] message: 'Missing required key \'RequestItems\' in params', code: 'MissingRequiredParameter', time: Wed Apr 27 2016 08:41:00 GMT+0000 (UTC) }
our code
var keyArr = [10001,10010,......];
PropertyModal.getItems(keyArr, function(err, propertyData) {
if (err) {
console.log(err);
} else {
}
});
The text was updated successfully, but these errors were encountered: