FlagDiligence docs
Troubleshooting
Work through the checklist that matches what you see.
Flags return the default value
- Is the SDK key correct, and is it for the same environment you are looking at?
- Is the flag on in that environment?
- For the Node.js SDK, did you
await client.init()before evaluating? - Is
baseUrlset? It defaults tohttp://localhost:3000. - Does the flag key match exactly, including case and underscores?
A user sees the wrong variation
- Does the user object include the attributes your rule checks, such as
custom.plan? - Check rule order. The lowest priority number is checked first and the first match wins.
- Use
variationDetailto see the reason (RULE_MATCH,FALLTHROUGH,OFF). - Check the audit log for a recent change.
Changes do not arrive quickly
- Is
modeset tostreaming? Instaticmode, flags are read once. - Is a proxy or load balancer blocking or buffering server-sent events? If so, use polling.
- In polling mode, remember the interval: changes appear at the next check.
The same user gets different values
- Is
user.keythe same every time? A random or changing key moves the user between rollout buckets. - Are you creating the user before it has loaded, so the first evaluation uses an anonymous user?
- Do two rules overlap? Check their priorities.
Browser shows network or CORS errors
- Check that the client key and
baseUrlare right. - Check that your FlagDiligence server allows your site’s origin.
Messages you may see
| Message | Likely cause | What to do |
|---|---|---|
| Invalid SDK key | Wrong or regenerated key | Copy the current key from the environment settings. |
| Flag not found | Key does not exist in this environment | Check the spelling and the environment. |
| Unauthorized | Key not accepted | Check the key type and environment. |
| Network error | Server not reachable | Check <code>baseUrl</code> and your network. |
| No `mode` specified | The SDK was started without a mode | Pass mode: "streaming", "polling" or "static". |
Need help with FlagDiligence?
Open the app, or tell us what you are trying to do.
