Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing flagsmith api from a failed state does not fix the consuming applications #159

Open
nishant-shah-social opened this issue Sep 9, 2024 · 1 comment

Comments

@nishant-shah-social
Copy link

nishant-shah-social commented Sep 9, 2024

Hello,
We have been observing this weird behaviour quite a few times now with our services leveraging flagsmith nodejs client SDK. Following is the sequence of events that occur, which lead to the issue:-
Note - Everything is running on Kubernetes. Flagsmith is self-hosted

  • Flagsmith api pod crashes due to some reason
  • While the flagsmith pod is in crashed state, the pods of the application services consuming flagsmith also restart due to some reason(e.g. a new deployment)
  • Now, we fix flagsmith api issue and bring it back. Everything is green on flagsmith side
  • However, the application service pod consuming flagsmith still keeps on giving error while calling getIdentityFlags

This is the stacktrace:-

stack: "Error: Invalid request made to Flagsmith API. Response status code: 404
    at new FlagsmithAPIError (/app/node_modules/flagsmith-nodejs/build/sdk/errors.js:30:42)
    at Flagsmith.<anonymous> (/app/node_modules/flagsmith-nodejs/build/sdk/index.js:414:35)
    at step (/app/node_modules/flagsmith-nodejs/build/sdk/index.js:33:23)
    at Object.next (/app/node_modules/flagsmith-nodejs/build/sdk/index.js:14:53)
    at fulfilled (/app/node_modules/flagsmith-nodejs/build/sdk/index.js:5:58

One more point. We also leverage flagsmith Go SDK for one of our applications, and there we dont observe this problem.

Any help around this would be highly appreciated.

Regards,
Nishant Shah

@matthewelwell
Copy link
Contributor

Thanks @nishant-shah-social, we will review this and get back to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants