You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use this SDK, I was faced with an issue when retrieving the features.
The debug logs only had something like this: poll: failed to retrieve features. Not a very helpful log. So I ran my service locally with a vendored version of the SDK so I could change its code and log the error, and this is what I saw:
And after looking into it a little bit, it turns out that this seems to be a case of the SDK not supporting some operators that we use in Unleash. So for the SDK to work properly, this would have to be supported.
Steps to reproduce the bug
Have an Unleash feature toggle with a currentTime constraint that uses either the DATE_BEFORE or the DATE_AFTER operators.
Hi @leo-vital the honest answer is that this was a conscious decision during the development of this SDK, to keep its dependencies to a minimum. So it currently has a minimum support of some features and it's lagging a bit behind compared with other SDKs. We'd love to receive some contributions here.
Describe the bug
When trying to use this SDK, I was faced with an issue when retrieving the features.
The debug logs only had something like this:
poll: failed to retrieve features
. Not a very helpful log. So I ran my service locally with a vendored version of the SDK so I could change its code and log the error, and this is what I saw:And after looking into it a little bit, it turns out that this seems to be a case of the SDK not supporting some operators that we use in Unleash. So for the SDK to work properly, this would have to be supported.
Steps to reproduce the bug
currentTime
constraint that uses either theDATE_BEFORE
or theDATE_AFTER
operators.poll_for_updates()
function of this SDK.Expected behavior
The polling should work properly.
Logs, error output, etc.
reqwest::Error { kind: Decode, source: Error("unknown variant `DATE_AFTER`, expected `IN` or `NOT_IN`", line: 1, column: 6347) }
Screenshots
No response
Additional context
No response
Unleash version
5.4.2
Subscription type
None
Hosting type
Self-hosted
SDK information (language and version)
Tried running it as a server-side SDK, in the latest version.
The text was updated successfully, but these errors were encountered: