Flagsmith for Unity

Troubleshooting

Symptom Cause
Flags.Source is always Defaults Wrong API URL or key, or no network. The Console shows a [Flagsmith] ... failed warning with the HTTP status
Events return 404 "does not store events" (self-hosted) Experimentation is off, or the environment has no warehouse connection. See server/seed.py for the setup
GetExperimentFlag records nothing The experiment isn't running, the flag is off, or the multivariate options have no key (then Variant is null)
Values change in the dashboard but not in the game Refresh Seconds is 0 or large, or you're editing a different environment
Editor window: 401 or 403 The admin token is wrong, or it's a user token used with the Api-Key scheme. Organisation keys contain a dot; user tokens don't
Works in the Editor, fails in a build with "Insecure connection not allowed" The API URL is plain http://. Unity blocks that in builds by default. Serve Flagsmith over HTTPS, or for local testing set Player Settings > Other Settings > Allow downloads over HTTP to "Always allowed"
WebGL: requests blocked The server must allow CORS for the game's origin and the X-Environment-Key header. Flagsmith Cloud and the default self-hosted image do