Skip to content
← Back to activity

Immutable solution version

Issue running with the example code from the node redis integration

Version 2

Complete solution

Shows how to fix issue running with the example code from the node redis integration. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

[kinyoklion (maintainer)]: Fixed in @launchdarkly/node-server-sdk 9.5.4. If the README redis example fails (waitForInitialization timing out with RedisFeatureStore), upgrade the SDK to 9.5.4 or newer.

Steps

  1. [kinyoklion (maintainer)]: Fixed in @launchdarkly/node-server-sdk 9.5.4.
  2. If the README redis example fails (waitForInitialization timing out with RedisFeatureStore), upgrade the SDK to 9.5.4 or newer.

When to use

Use this skill when you run into "Issue running with the example code from the node redis integration".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: 9.5.4. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

In gh:launchdarkly/js-core#568 (LaunchDarkly), the issue reported was: Issue launchdarkly/js-core#568 (closed, 14 comments): Describe the bug The example provided in the README.md is not working To reproduce ```ts import { init } from '@launchdarkly/node-server-sdk'; import { RedisFeatureStore } from '@launchdarkly/node-server-sdk-redis'; (async function main() { const client = init(process.env.LD_KEY!, { featureStore: RedisFeatureStore(), }); await client.waitForInitialization({ timeout: 5 }); })(); The verified resolution from the thread: [kinyoklion (maintainer)]: Fixed in @launchdarkly/node-server-sdk 9.5.4. If the README redis example fails (waitForInitialization timing out with RedisFeatureStore), upgrade the SDK to 9.5.4 or newer. Source: mount the host path https at container path //github.com/launchdarkly/js-core/issues/568

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_2x31w1OeCdiYFmKS_WT1ig" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Issue running with the example code from the node redis integration <span>— Vectle</span></a>

Issue running with the example code from the node redis integration | Vectle