https://www.growthbook.io/ logo
#announcements
Title
# announcements
q

quaint-pharmacist-3914

10/07/2022, 7:35 AM
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

fresh-football-47124

10/07/2022, 7:41 AM
do you know what status code they got?
q

quaint-pharmacist-3914

10/07/2022, 7:42 AM
0
f

fresh-football-47124

10/07/2022, 7:43 AM
did they get a 50X or or 40X?
q

quaint-pharmacist-3914

10/07/2022, 7:44 AM
no, I don’t see it
f

fresh-football-47124

10/07/2022, 7:44 AM
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

quaint-pharmacist-3914

10/07/2022, 7:49 AM
I wasn’t able to reproduce it by myself. I’m seeing it in DataDog logs and there are such errors every day
f

fresh-football-47124

10/07/2022, 7:53 AM
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

quaint-pharmacist-3914

10/07/2022, 7:56 AM
Are you talking about caching on your end? If so, how can I ensure the caching is enabled?
f

fresh-football-47124

10/07/2022, 7:56 AM
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

future-teacher-7046

10/07/2022, 11:23 AM
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.
76 Views