Coder Social home page Coder Social logo

Comments (5)

kyle-ssg avatar kyle-ssg commented on June 22, 2024 1

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.

dabeeeenster avatar dabeeeenster commented on June 22, 2024

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.

marcshilling avatar marcshilling commented on June 22, 2024

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.

dabeeeenster avatar dabeeeenster commented on June 22, 2024

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.

kyle-ssg avatar kyle-ssg commented on June 22, 2024

@marcshilling Feel free to re-open this if you spot the issue after updating to this version 🙌

from flagsmith-js-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.