-
Notifications
You must be signed in to change notification settings - Fork 47
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
Experiencing "Unable to fetch feature toggle" errors #215
Comments
thanks for reaching out. Its a bit hard to say exactly whats going on here. A connection error can come from many things:
Do you have server metrics for the edge service you can observe? Is it constantly receiving traffic? Are you able to observe any unstability there? I see you are running a rather old Unleash Edge (and Unleash server), would you mind upgrading to Unleash Edge v19.1.3? |
I understand that this issue can be hard to pinpoint because there are many possibilities. Is there any way to get more information about the failed XHR requests?.... How can I differentiate between an unreachable/unresponsive Server vs Client-side networking issues (firewall, network failure) ? Honestly "3" might be the problem... We have had issues with other teams loading our MFE module multiple times, and SPA routing might also be causing the multiple loads. I can talk with the team about upgrading our Edge and Server version. Thanks for your suggestions @ivarconr |
Hi again, The error There are some common things to validate in order to fix this issue (source): 1. Incorrect or Incomplete URL
2. CORS (Cross-Origin Resource Sharing) Issues
3. Incorrect Fetch Configuration
4. Browser Extensions
|
Thanks for more clarification @ivarconr ! We have not seen anything wrong in the server logs... and I have had issues with redirects causing our MFE app to reinitialize... So client side redirects might be the root cause. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We are seeing similar issues in out datadog tracking too. We see this happening randomly during a users session. I think this is more of a problem than unleash are giving credit to it. |
Describe the bug
Hello, I am seeing the "Unable to fetch feature toggle" error pop up with high frequency.
Here is a screenshot of our logs over a 4 hour period:
Technical
We are a React micro front end app that is loaded on to our websites pages. We are using the React SDK to connect to our self hosted Unleash Edge instance.
Here is our config for the React SDK:
Here are the images we are using for hosting the server
I have tried to use the custom
fetch
in the config to create a wrapper to catch any failed network requests and returned a fake Response object.Steps to reproduce the bug
I cannot reproduce any of these errors when I am testing, except for the
Unleash: unable to fetch feature toggles TypeError: Failed to fetch
error. I can reproduce this one by blocking this network request, or disabling the network.Expected behavior
No response
Logs, error output, etc.
No response
Screenshots
No response
Additional context
No response
Unleash version
No response
Subscription type
Open source
Hosting type
Self-hosted
SDK information (language and version)
No response
The text was updated successfully, but these errors were encountered: