Sorry if this has been asked before but what could...
# ask-questions
p
Sorry if this has been asked before but what could be some causes for occasional "Failed to fetch" and "Load failed" when initializing GrowthBook in a web app (Remix)? We recently noticed some initialization failures and added backoff but continue to see errors for certain users leading me to believe it's being blocked by CORS or something similar
It doesn't seem to be any particular country, browser, or device causing this
I'm getting "Failed to fetch" and "Load failed" from the init response in these cases. The source being returned is "error"
Copy code
const result = await growthbookInstance.init({ streaming: true });

console.log(result.error)
h
This is in a front-end SDK context right? Is it occasional (like network outages) or common? Have you observed it directly or have you only seen it in logs? Are you using cloud or self-hosted? Client side network errors are quite common. If you're self-hosted, you can improve server side availability with a CDN.
p
Cloud hosted front-end SDK, only observed in the logs
Yeah, not terribly surprised to be seeing occasional failures but wasn't sure if there was anything else that could be done aside from self hosting. Thanks!
h
Another common option here is hydrating the SDK payload (feature definitions) from your back end to avoid an extra client side fetch. A bit more complex to set up. This can also be done automatically if running through an Edge SDK
👍 1