-
Notifications
You must be signed in to change notification settings - Fork 90
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
Missing required key 'Key' in params #125
Comments
Hi |
issue resolved for me in |
Thank you for the tip, K in CAP fixed the issue for me too. |
WHATTTTT lmao a capital K was the issue omg the struggles continue. |
God bless you for this fam! |
Thanks it resolved my issu too |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
const AWS = require('aws-sdk');
var docClient = new AWS.DynamoDB.DocumentClient();
var tableName = "TravBudgInfoDB";
exports.handler = (event, context, callback) => {
console.log(event.EmailID)
var params = {
TableName : tableName,
key:{
"EmailID" : event.EmailID
}
}
docClient.get(params, function(err,data){
callback (err, data);
})
I wrote the above code in Lambdafunction and I am getting the below error:
errorMessage": "Missing required key 'Key' in params",
"errorType": "MissingRequiredParameter",
"stackTrace": [
"ParamValidator.fail (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:50:37)",
"ParamValidator.validateStructure (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:61:14)",
"ParamValidator.validateMember (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:88:21)",
"ParamValidator.validate (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:34:10)",
"Request.VALIDATE_PARAMETERS (/var/runtime/node_modules/aws-sdk/lib/event_listeners.js:125:42)",
"Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:105:20)",
Could anyone please help me in it.
The text was updated successfully, but these errors were encountered: