Skip to content

Uncaught Exception: "Cannot read properties of null (reading length)" when use encrypt function on lambda 20.x  #1374

Closed
@HeverFarber

Description

@HeverFarber

Problem:

When we change AWS lambda to nodejs20.x runtime - we start to get Uncaught Exception when we use encrypt function - after a big effort I figured out it came from a package stream-shift which uses a private field of the buffer. An issue has occurred on node 20.11.0, which affects the functionality of the lambda.

You are exposed to these uses because you depend on https://www.npmjs.com/package/duplexify version 4.1.1

Solution:

Update duplexify to version 4.1.3 which already fixes the version of stream-shift

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