Closed nishant-shah-social closed 1 week ago
Hi @nishant-shah-social, your expectation is correct - the Golang SDK should continue to serve flags, as long as it has retrieved the environment document on a previous request.
We will investigate this issue further and update once we can.
@nishant-shah-social The client retains the old environment document in the cache even if the update fails. I am unable to reproduce the error you're encountering.
To further debug this, we'll need the following information:
Hello Team, We are using flagsmith self hosted. The SDK is being used in local evaluation mode. We have been seeing one error with the sdk whenever due to some reason the flagsmith server is unavailable or has some issues for few minutes. The SDK panics on /go/pkg/mod/github.com/!flagsmith/flagsmith-go-client/v3@v3.1.0/flagengine/engine.go in GetIdentitySegments
Below is the stack trace:-
Our expectation is:- Given we are using local evaluation mode, the sdk should not panic even if the flagsmith server has some issues for few minutes. It should keep on serving the flags from last fetched environmentDocument without any problem. Please let us know if this expectation is not correct.