Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
This repository was archived by the owner on May 30, 2024. It is now read-only.

httpErrorMessage not properly stringified #263

Description

@Pipo93

Describe the bug
We received more than 100 warning logs today where it is impossible to detect the actual root cause for the error: ["2022-11-09T03:40:00.141Z"] Received I/O error ([object Object]) for streaming request - will retry.

Looks like in https://github.com/launchdarkly/node-server-sdk/blob/main/messages.js#L10 the error object is not properly stringified.

To reproduce
It is hard to reproduce on our side but it should be possible by calling httpErrorMessage with an error object not containing a message.

Expected behavior
The actual error is properly logged to the warning message.

Logs
["2022-11-09T03:40:00.141Z"] Received I/O error ([object Object]) for streaming request - will retry

SDK version
6.4.3

Language version, developer tools
node v16.14.2

OS/platform
Docker node16 image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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