Comments (5)
This is fixed as of 1.6.7 of react-native-flagsmith and flagsmith. Basically this was a super slim usecase whereby the previous analytics events hadnt been read from local storage at the point when tracking new events.
from flagsmith-js-client.
Hi @marcshilling - thanks for raising this. Are you able to provide some more info:
- Are you able to reproduce these errors locally?
- Is there any additional info in the full stack trace?
- Are you able to provide the get flags
curl
or JSON response you get from the API that generates this error? - Is it repeatable or does it only happen from time to time?
from flagsmith-js-client.
Hey there @dabeeeenster.
- No, I've never gotten this locally...only seeing via Sentry crash reports from our production apps.
- The rest of the stack trace isn't really valuable...it's just our app's code tracing back from the line where we call
hasFeature()
...if you're curious:{flagsmith.hasFeature('ads_enabled') && <Advertisment />}
to conditionally render an ad. - I'm not sure about the API response because like I said I can't reproduce this and it's happening in
react-native-flagsmith
's code. - We're only seeing this from a very small percentage of our users. In the last 14 days it's occurred 21 times for 4 iOS users and 106 times for 97 Android users when we have likely had over a half million users in that timeframe. The iOS users have different devices but all are on iOS 14.7.1. On Android it's a variety of devices on Android 9, 10, and 11.
For the time being we've wrapped our hasFeature()
calls in a try/catch which hopefully resolve our app-side issues, but the error reports are still coming in from your module. Also, if it matters, we are on a self-hosted Flagsmith instance.
from flagsmith-js-client.
Are you able to log the response from the API that is causing the failures via the SDK somehow? @kyle-ssg are there any hooks for this? Ideally logging the JSON payload from the API?
from flagsmith-js-client.
@marcshilling Feel free to re-open this if you spot the issue after updating to this version 🙌
from flagsmith-js-client.
Related Issues (20)
- Case sensitive flags are lower cased when trying to retrieve values
- isLoading never updates to false if flag is disabled (React useFlagsmith hook) HOT 5
- Clear cache when calling logout() HOT 5
- the value obtained is sometimes not appropriate HOT 2
- Don't call getFlags() if the identity set is the same HOT 6
- error TS2304: Cannot find name 'bool'
- Provide explicit setter functions for Data Dog / Dynatrace HOT 1
- Improve useFlagsmithLoading
- Cannot read properties of null (reading 'getValue') HOT 4
- isLoading never updates to false HOT 2
- Flagsmith's `loadingState.error` is not respect actual error state HOT 11
- [Bug] - NextJS >= 13.0.0 SSR `useFlagsmith` state not matching the state that is passed to the provider. HOT 16
- flagsmith/react only works in React 18 HOT 3
- [Bug] - TypeError: Cannot read properties of null (reading 'getValue') HOT 5
- Flagsmith's 'useFlags' doesn't return actual cached flags when request failed HOT 2
- Rollup Name for react HOT 5
- Inconsistent license information HOT 2
- Caching with multiple instance doesn't work HOT 6
- Typing issue in react.tsx: 'flagsmith' is possibly 'null' HOT 3
- useFlags() race condition HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flagsmith-js-client.