configcat / common-js

Common Javascript library for ConfigCat. ConfigCat is a hosted feature flag service: https://configcat.com. Manage feature toggles across frontend, backend, mobile, desktop apps. Alternative to LaunchDarkly. Management app + feature flag SDKs.
https://configcat.com
MIT License
16 stars 10 forks source link

Retrieving number with getValueAsync returns boolean #104

Closed titivermeesch closed 1 month ago

titivermeesch commented 5 months ago

Describe the bug

I'm using the configcat-node wrapper

I have a feature flag containing a numeric value (5 digits). When using ConfigCatClient#getValueAsync I receive true back instead of the actual value. Even if I delete the feature flag from the admin panel I still receive true.

I enabled debug logs and I can see from the logs that it successfully retrieves the numeric value from the API. When I use getValueDetailsAsync I also receive the correct value.

To reproduce

  1. Add a numeric setting to the ConfiCat admin panel
  2. Query the flag with getValueAsync

Expected behavior

The numeric value should be returned

titivermeesch commented 5 months ago

As an extra point, I cannot reproduce this in a sandbox environment but am wondering what could cause this

laliconfigcat commented 5 months ago

Hello @titivermeesch ,

I'm sorry to hear that you run into an issue with our SDK. Could you please write an email to support@configcat.com with the affected SDK key and the feature flag's key so we can check what is happening? Also, please share how do you initialize the SDK and how do you call the getValueAsync function.

Cheers, Lali

github-actions[bot] commented 4 months ago

This issue is marked stale because it has no activity in the last 3 weeks. The issue will be closed in one week. Please remove the stale flag to keep it open.

github-actions[bot] commented 1 month ago

This issue was closed due to no activity.