Gettting an error message with missing key userid. Has any else seen this and can help me out?
Serverless: Bundling with Webpack...
Time: 9073ms
Built at: 04/20/2019 12:32:52 PM
Asset Size Chunks Chunk Names
create.js 10.1 KiB create [emitted] create
create.js.map 7.24 KiB create [emitted] create
Entrypoint create = create.js create.js.map
[./create.js] 2.36 KiB {create} [built]
[./libs/dynamodb-lib.js] 468 bytes {create} [built]
[./libs/response-lib.js] 762 bytes {create} [built]
[aws-sdk] external "aws-sdk" 42 bytes {create} [built]
[babel-runtime/core-js/json/stringify] external "babel-runtime/core-js/json/stringify" 42 bytes {create} [built]
[babel-runtime/helpers/asyncToGenerator] external "babel-runtime/helpers/asyncToGenerator" 42 bytes {create} [built]
[babel-runtime/regenerator] external "babel-runtime/regenerator" 42 bytes {create} [built]
[source-map-support/register] external "source-map-support/register" 42 bytes {create} [built]
[uuid] external "uuid" 42 bytes {create} [built]
{ ValidationException: One or more parameter values were invalid: Missing the key userid in the item
at Request.extractError (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\protocol\json.js:51:27)
at Request.callListeners (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\sequential_executor.js:106:20)
at Request.emit (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\sequential_executor.js:78:10)
at Request.emit (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\request.js:683:14)
at Request.transition (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\request.js:22:10)
at AcceptorStateMachine.runTo (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\state_machine.js:14:12)
at C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\state_machine.js:26:10
at Request.<anonymous> (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\request.js:38:9)
at Request.<anonymous> (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\request.js:685:12)
at Request.callListeners (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\sequential_executor.js:116:18)
at Request.emit (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\sequential_executor.js:78:10)
at Request.emit (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\request.js:683:14)
at Request.transition (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\request.js:22:10)
at AcceptorStateMachine.runTo (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\state_machine.js:14:12)
at C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\state_machine.js:26:10
at Request.<anonymous> (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\request.js:38:9)
at Request.<anonymous> (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\request.js:685:12)
at Request.callListeners (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\sequential_executor.js:116:18)
at callNextListener (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\sequential_executor.js:96:12)
at IncomingMessage.onEnd (C:\Users\sanja_000\notes-app-api\node_modules\aws-sdk\lib\event_listeners.js:299:13)
at IncomingMessage.emit (events.js:198:15)
at IncomingMessage.EventEmitter.emit (domain.js:481:20)
at endReadableNT (_stream_readable.js:1142:12)
at processTicksAndRejections (internal/process/task_queues.js:81:17)
message:
'One or more parameter values were invalid: Missing the key userid in the item',
code: 'ValidationException',
time: 2019-04-20T16:32:57.012Z,
requestId: 'C6UD1K9D3TKTAIC0V0A7PDV93VVV4KQNSO5AEMVJF66Q9ASUAAJG',
statusCode: 400,
retryable: false,
retryDelay: 7.747934417726421 }
{
"statusCode": 500,
"headers": {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Credentials": true
},
"body": "{\"status\":false}"
}