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

fix: Handle uncaught fetch exception #256

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

frankieyan
Copy link

Closes #249

When the local cache is populated or when default flags are provided, flagsmith.init does not reject if the call to edge proxy fails; however, an uncaught exception gets thrown which is difficult to catch in user code. This change allows the error to be caught within Flagsmith (logging Exception fetching cached logs when verbose mode is on).

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.

Uncaught rejected promise when attempting to fetch flags while offline
1 participant