-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
Some Adblockers such as uBlock Origin unfortunately block requests to https://api.leanplum.com/api . The JS SDK doesn't handle this very well however, as it seems to retry the request every ~400ms forever. In addition to spamming the console it also seems to significantly slow down the web app.
Expected Behavior
There are a number of possible solutions for this that can be applied, either one or many in tandem:
- Implement exponential backoff for retries
- Stop automatically retrying after a configurable time period
- Stop retrying if the response object has
status = 0
Actual Behavior
The SDK retries the request every ~400ms forever.
Steps to Reproduce the Problem
- Install a browser Adblock extension such as uBlock Origin
- Navigate to any website using the leanplum SDK
- Trigger a leanplum API request via
leanplum.forceContentUpdate()or similar
Specifications
- Version: [email protected]
- Platform: Chrome 113.0.5672.126 (Official Build) (arm64)
- Subsystem: ?
gabrielf, gusost, frekw, gyoshev and melv-n
Metadata
Metadata
Assignees
Labels
No labels