Closed L03TJ3 closed 9 months ago
Also i've noticed that the fetch error is:
Hi @sirpy thanks for reporting this, let me check it.
@sirpy or @L03TJ3 can you enable debug
and check the console logs? what is the error about? is there any more info either before or after the error? are you using PostHog self-hosted or the EU or US cloud? what is your api_host?
Do first thing after the SDK is init:
posthog.debug(false)
I cannot reproduce it locally so I'm not sure what it can be.
@marandaneto We are using your service I believe US cloud. we use vercelrp.gooddollar.org as a reverse proxy to your api host. Also notice that we are using the posthog react native in browser env.
I can reproduce it using RN Web, will check it out, thanks.
It's not really because of sendFeatureFlagEvent
, if you call posthog.capture('test');
you can reproduce that already, it just happens that sendFeatureFlagEvent=true
captures an event when feature flags are used.
If you init the SDK with captureMode: 'json'
, this does not happen either, but its form
by default.
Bug description
We added a logger to catch whenever posthog failed to load at all. It seems posthog.on('error') should be used for this. There is an initial HTTP fetch error always logged and catched, even if the calls to host are succesfull.
How to reproduce
Related sub-libraries
Additional context
Thank you for your bug report – we love squashing them!