-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retries persist forever if blocked by adblocker #1598
Comments
Hey, @chasegiunta! Are you sure Also, would you mind calling I can help you with that if you could share me a URL where I can see that behavior myself? |
Hey @rafaeelaudibert, thanks for getting back to me so quick! Unfortunately, we had to remove the frontend client from our live application for now. And here are some more requests. I believe there's a few initial ones that are blocked, which seem fine, but the others that are repetitive at the bottom, all seem to be exactly the same. (all with |
Yeah, it's not displaying the payload because this is the initial HEAD request, it's failing before we can actually POST the data. We'll investigate further, but I can't promise on a deadline, thank you! |
We had the same issue about a year ago, I think this ticket is talking about the same issue: #482 PostHog being blocked by an adblocker is not necessary a problem, until we want to do A-B testing on our entire platform using feature flags. Because of the adblocker, the It would be nice to have this behavior directly configurable within posthog, with something like a "max retry" or "timeout", and an error callback on the // example
import posthog from 'posthog-js';
posthog.init(token, { retries: 3 });
posthog.onFeatureFlags({
loaded: (flags, variants) => {
// feature flags are properly loaded
},
error: () => {
// fallback when we cannot load the feature flags
},
}); |
I'm aware that using the reverse proxy might be a workaround to this, but at the same time, I think this should be addressed. I'd think this would be a configurable option in the client. Also, might be related, it looks like the retry param isn't being updated in these failed requests?
This is Firefox using the PrivacyBadger extension (I'm not a user myself, but we found out pretty quickly after deploying the JS client that a gigantic number of our users are themselves)
The text was updated successfully, but these errors were encountered: