Skip to content

socket hang up issues #11679

@scorrea-ui

Description

@scorrea-ui

Describe the bug

Currently, we are experiencing many socket hang issues coming from Unleash.

We are using Unleash Edge: v20.2.0 and the unleash-client npm package: v6.10.1

We run our toggles server-side using react-router v7.13.2

We also use the startUnleash function with the InMemStorageProvider, and followed your recommendations based on this article: https://docs.getunleash.io/guides/implement-feature-flags-in-aws-lambda

Any help would be greatly appreciated.

Image

Steps to reproduce the bug

  1. Use Unleash based on your lambda documentation and based on traffic you will most likely see these spikes come up and down

Expected behavior

That the socket hang-up issue is handled gracefully and does not spam our logs.

Logs, error output, etc.

This came from a GET request to /api/client/features, but we have also seen the issue on the metrics endpoint as well.

Error: socket hang up

at TLSSocket.socketOnEnd (node:_http_client :598:25)

at TLSSocket.emit (node: events: 531:35)

at TLSSocket.emit (src/net.js:65:25)

at endReadableNT (streams/readable: 1698:12)

at process.processTicksAndRejections (process/task_queues:90:21)

Screenshots

No response

Additional context

No response

Unleash version

6.10.1

Subscription type

Enterprise

Hosting type

Self-hosted

SDK information (language and version)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions