Flagsmith / Flagsmith/flagsmith-nodejs-client

With offlineHandler and without offlineMode, the client always serves flags from the local json file even thought flagsmith server is available

Open
#195 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
30
Forks
27
Avg merge
11m
Merged PRs (30d)
5

Description

Hello,
We are using flagsmith inhouse in local evaluation mode.
We were trying to implement offline handler as described in the second point [here](https://docs.flagsmith.com/clients/server-side#using-an-offline-handler)

Our expectation is:-
If flagsmith server is available then use the environment document fetched from the server for the flag evaluation.
If flagsmith server is unavailable then use the environment document present in the .json file in the local.

Actual Behaviour:-
Even if flagsmith server is available, the flags are served from the .json file in the local

Note:-we only have offlineHandler set. The offlineMode is false

Can someone please clarify if our expectation is correct? If yes then why its not behaving this way?

Thanks!

Contributor guide

Open the contributing guide

Research direction

Start with the linked offline-handler documentation and trace how offlineHandler and offlineMode are interpreted when the server is available. Reproduce the behavior with a local JSON environment document and an available server, then confirm whether the documented expectation is correct and capture the intended behavior in a test or documentation update.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.