Skip to content

Launch Darkly client not initializing #204

@davidryee

Description

@davidryee

I followed the set up instructions as follows:


@client = LaunchDarkly::LDClient.new(<sdk_key>)
hash = Hash.new
@client.variation('flag_name', hash, false)

However, I keep getting an error stating [LDClient] Client has not finished initializing; feature store unavailable, returning default value

I'm noticing that @data_source.initialized? is false in this statement:
@config.offline? || @config.use_ldd? || @data_source.initialized? at this line in ldclient.rb

I also noticed that @initialized.make_true is never called at this line in stream.rb

The code that is ingesting the ruby-server-sdk is in a library used by another application that may already have its own launch darkly ruby-server-sdk as well.

Does anyone know why the LD Client is not being initialized? Thank you!

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