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 feature flag is DISABLED, flag return an incorrect error message
error code: PROVIDER_NOT_READY: connection not made
Expected Behavior
The error message should highlight the fact that flag is disabled. This must be corrected at code level [1] as this is infered incorrectly at go-sdk-contrib [2]
## This PR
fixes#668
Fixes incorrect error code mapping, which resulted in error message
`error code: PROVIDER_NOT_READY: connection not made`
With fix, the error code is set to unknown (as there is no appropriate
error code for this error) , and results in message `openfeature:
GENERAL: unknown: FLAG_DISABLED`
---------
Signed-off-by: Kavindu Dodanduwa <[email protected]>
Observed behavior
When feature flag is
DISABLED
, flag return an incorrect error messageerror code: PROVIDER_NOT_READY: connection not made
Expected Behavior
The error message should highlight the fact that flag is disabled. This must be corrected at code level [1] as this is infered incorrectly at go-sdk-contrib [2]
[1] - https://github.com/open-feature/flagd/blob/main/core/pkg/service/flag-evaluation/flag_evaluator.go#L325C1-L326
[2] - https://github.com/open-feature/go-sdk-contrib/blob/main/providers/flagd/pkg/service/service.go#L184-L185C1
Steps to reproduce
Disable a flag and observe the error log of the feature flag client
The text was updated successfully, but these errors were encountered: