Coder Social home page Coder Social logo

Comments (7)

kyle-ssg avatar kyle-ssg commented on July 21, 2024 1

I'll review this since there are several endpoints as well as the possibility of this being the result of a promise catch or perhaps a network timeout.

from flagsmith-js-client.

dabeeeenster avatar dabeeeenster commented on July 21, 2024

Thanks - will take a look

from flagsmith-js-client.

oguzhanogreden avatar oguzhanogreden commented on July 21, 2024

I appreciate the quick response! Can't see the priority here, so would you be able to help me further?

Should I consider this { message?: string, detail?: string} or would {detail: string} be enough?

from flagsmith-js-client.

gfrancischini avatar gfrancischini commented on July 21, 2024

Any updates on this issue? It seems that the onError is unreliable as of now and we would like to log problems to sentry.

from flagsmith-js-client.

kyle-ssg avatar kyle-ssg commented on July 21, 2024

The problem with this is that we don't know what the error could look like taking the following into consideration:

  • Any unexpected exceptions
  • Lack of internet connection
  • Different possible API responses for scenarios such as invalid API keys, 404s etc.

Happy to take any suggestions here but I don't really see how we could guarantee the format of an error.

from flagsmith-js-client.

gfrancischini avatar gfrancischini commented on July 21, 2024

Uhm.. What do you think about delivering the Error object instead of only the message? At least the Error object has the message and stacktrace properties that can help on figuring out where the error is happening

from flagsmith-js-client.

kyle-ssg avatar kyle-ssg commented on July 21, 2024

Apologies for the late response on this one, thanks for your suggestion. As of 3.16.0 onError will always send an Error object

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.