Description
Is this a support request?
This issue tracker is maintained by LaunchDarkly SDK developers and is intended for feedback on the code in this library. If you're not sure whether the problem you are having is specifically related to this library, or to the LaunchDarkly service overall, it may be more appropriate to contact the LaunchDarkly support team; they can help to investigate the problem and will consult the SDK team if necessary. You can submit a support request by going here and clicking "submit a request", or by emailing support@launchdarkly.com.
Note that issues filed on this issue tracker are publicly accessible. Do not provide any private account information on your issues. If your problem is specific to your account, you should submit a support request as described above.
Describe the bug
I am trying to initialize LaunchDarkly with my serverless Redis in AWS Elasticache.
But I got an error: Error initializing Redis store ReplyError: CROSSSLOT Keys in request don't hash to the same slot
.
To reproduce
const redisStore = RedisFeatureStore({
client: redis, // redis client
prefix: `myprefix-`,
});
const ldClient = init(LD_SDK_KEY, {
featureStore: redisStore,
logger,
offline: false,
});
const theClient = await ldClient.waitForInitialization({
timeout: 5,
});
My Redis is a serverless instance in AWS Elasticache.
Logs
Error initializing Redis store ReplyError: CROSSSLOT Keys in request don't hash to the same slot
SDK version
9.9.2
Language version, developer tools
vscode, typescript