When deploying to an environment in Statsig, if you encounter an issue where the RULE
is always Default
and the REASON
is Unrecognized
, it typically means that the SDK was initialized, but the config or feature gate you're trying to evaluate did not exist in the set of values. This could be due to a few reasons:
1. The feature gate or dynamic config you're trying to evaluate does not exist or is not correctly spelled in your code. Please double-check the spelling and case-sensitivity.
2. The SDK might not have been able to fetch the latest rules from the Statsig server. This could be due to network issues or if the SDK initialization did not complete successfully.
3. If you're using a server SDK, it's possible that the SDK is outdated and doesn't recognize new types of gate conditions. In this case, upgrading the SDK might resolve the issue.
Remember, the Unrecognized
reason is only given when the SDK is initialized, but the config or feature gate did not exist in the set of values.
It's also important to ensure that you are waiting for initialize to finish before making evaluations. For instance, calling checkGate
inside the callback or after you are sure the callback has been triggered.
Additionally, check if the environment you've deployed to is able to make requests to the relevant URLs. In some cases, these requests might be blocked by the client in your production environment.
If you're still having trouble, please provide more details about your setup and the issue, and a Statsig team member will assist you shortly.