This message was deleted.
# ask-questions
w
This message was deleted.
p
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
158 Views