Skip to content

Dropped support for Lambda handler context callbacks #681

Description

@Desuuuu

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

  1. Create a function with the code above with version 126 of the layer.
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions