Skip to content

Using Split within a Lambda that streams responses  #794

Open
@roy2006

Description

@roy2006

I'm using the Split nodejs SDK in my application. It's generally working fine, but I'm running into issues when using the SDK as part of a lambda that streams its response (as shown here). Specifically, the Lambda doesn't complete and just hangs until it times out.

The only thing I'm doing with Split is initializing it using the following code:

    const SplitFactory = require('@splitsoftware/splitio').SplitFactory;
    const SplitObj = await SplitFactory({
      core: {
            authorizationKey:splitAuthKey
      },
      startup: {
            readyTimeout :10
      },
      scheduler: {
            impressionsRefreshRate: 1,
            eventsPushRate: 2,
      }
    });

When this code is removed or if it's not executed, the lambda works as expected and finishes immediately after it's done streaming its output.

I'm using SDK version 10.25.1.

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