-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Starting from version 126 of the Lambda layer, the following code does not work anymore:
exports.handler = function (event, context) {
setTimeout(() => {
context.succeed({ ok: true });
}, 500);
};
This is arguably some very outdated code, but since the change wasn't documented anywhere I'm guessing this wasn't done on purpose.
Expected Behavior
The Lambda should return { "ok": true }
.
Actual Behavior
The Lambda returns null
.
Steps to Reproduce the Problem
- Create a function with the code above with version 126 of the layer.
- Send a test event to the Lambda.
Remarks
This was introduced in #661 with the check for the handler's number of arguments.
Metadata
Metadata
Assignees
Labels
No labels