Skip to content

Conversation

@eilgin
Copy link
Contributor

@eilgin eilgin commented Mar 11, 2021

We're using Flagsmith and so far we're pretty happy with it ;)
Since we're mostly a "JS shop", we're extensively using Node.JS to write our backend services and thus using this SDK to toggle features and set config values.

However we've noted some quirks related to API errors: the SDK wasn't correctly treating them and this resulted in errors since handlingResponse assumes that the res value is of the expected value (i.e. a plain object).

To reproduce this error, you simply have to use an incorrect "environment ID" value.

eilgin added 4 commits March 11, 2021 22:55
It was injecting a global variable ("config") and was only use to define a default value for the API URL.
We are rejecting with the detail message
@dabeeeenster
Copy link
Contributor

Hey thanks for the PR we will take a look right away 👍

@dabeeeenster dabeeeenster merged commit 6c9c2f2 into Flagsmith:master Mar 12, 2021
@dabeeeenster
Copy link
Contributor

Thanks so much for the PR!

@dabeeeenster
Copy link
Contributor

This is now in npm as version 1.0.9

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

Successfully merging this pull request may close these issues.

2 participants