Closed jscheid closed 2 months ago
I am sorry to hear you are experiencing this issue! I will try to look into this as soon as I am able. Due to some other time constraints, this will likely be early next week though. I will update you here once I've released a fix for you.
Tracking internally as 245560.
@jscheid wanted to provide you with a quick update.
It looks like the ruby SDK is expecting a version number to always be set within that flag file. When you want to trigger a chance, you need to modify the flag definition and also increment that version number.
I believe this is a difference in behavior from other SDKs, so I'll be doing some longer, internal work to decide how we want to proceed, but I thought this might be sufficient to unblock you for now.
Ah, good to know, thanks for the update @keelerm84.
FWIW I'd be happy if this just was documented better and the error message improved.
This should be fixed in 8.5.0.
Is this a support request?
No
Describe the bug
An error is raised when using
LaunchDarkly::Integrations::FileData
(withauto_update
) together withflag_tracker.add_flag_value_change_listener
. The flag I'm listening on is a boolean flag (defined viaflagValues
in the YAML file) and I'm turning it from false to true by editing and saving the file.To reproduce
I'm happy to boil it down to a test case if you need one.
Expected behavior
Preferably no error, or -- if I'm using the SDK in a way that isn't supported -- an informative error message.
Logs
SDK version
launchdarkly-server-sdk-8.4.2
Language version, developer tools
Ruby 3.3.2
OS/platform
Debian bullseye
Additional context
N/A