Oleksii
02/24/2021, 3:44 PMname: 'TypeError',
message: 'context.getRemainingTimeInMillis is not a function',
stack: 'TypeError: context.getRemainingTimeInMillis is not a function\n' +
it looks like the context object which is sent to the handler function does not implement the Context interface. Does it makes sense to add a basic getRemainingTimeInMillis
method that returns a constant number to ensure that the context object conforms to the interface or there is a better way to solve this issue?Frank
node_modules/@serverless-stack/cli/assets/lambda-invoke/bootstrap.js
and below the context.done
line add something like
context.getRemainingTimeInMillis = () => 1000;
Frank
Frank
Oleksii
02/24/2021, 4:56 PMcontext.getRemainingTimeInMillis = () => 3;
it workedFrank
Frank
Oleksii
02/25/2021, 1:07 PMFrank
Frank
Frank
$ npm install --save --save-exact @serverless-stack/cli@0.9.8 @serverless-stack/resources@0.9.8
Oleksii
02/26/2021, 2:21 PM