Skip to content

Recieving LaunchDarklyFlagFetchError: Expected application/json content type #176

@tdeekens

Description

@tdeekens

Describe the bug

When the application loads it initializes with LaunchDarkly through the js-client-sdk. We, in our Sentry logs, see an increasing number of errors like this

CleanShot 2019-09-04 at 15 07 13@2x

We actually catch the waitForInitialization call and only log on errors and let default flags handle the issue. We we assume it happes when the flags are being loaded.

Any idea what the cause of such an error could be?

Expected behavior
A clear and concise description of what you expected to happen.

Logs
If applicable, add any log output related to your problem.

SDK version
2.13.0

Language version, developer tools
Javascript, Sentry

OS/platform
All platforms. Firefox as well as Chrome and IE.

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