Hello. I see there is an error on fetching feature...
# announcements
q
Hello. I see there is an error on fetching features from the GrowthBook API for some random users
Copy code
Fetch error GET <https://cdn.growthbook.io/api/features/{key}>

TypeError: Failed to fetch
Has anyone faced this? What could be the reason?
f
do you know what status code they got?
q
0
f
did they get a 50X or or 40X?
q
no, I don’t see it
f
I can look at our logs
How are you seeing this error? is it reproducable?
We encourage caching of our feature API request to make sure there are no hard dependancies. But even if you’re hitting the CDN directly, our error rate (50x) for the last 30days is around 0.0002%
q
I wasn’t able to reproduce it by myself. I’m seeing it in DataDog logs and there are such errors every day
f
We will take a look a bit deeper on our end. I have a feeling its transitory and/or caused by network errors from the client
q
Are you talking about caching on your end? If so, how can I ensure the caching is enabled?
f
we cache on our end already with the CDN - I was referring on your end
you can use webhooks to expire the flags, or set a short TTL.
f
These errors are almost always network errors on the client. A phone loses service while a page is loading, someone has a weird browser extension or corporate firewall that aggressively blocks requests, etc.. We monitor errors on our CDN and API and the error rate is only about 1 in 1M requests.
123 Views