IPM Error: Failed to execute 'json' on 'Response'
Environment
- OS version: macOS
- Browser version: Chrome
- Extension version: ABP build with IPM
Steps to reproduce
- In ABP build with IPM, change the ping interval duration under the
ipm_ping_interval
key so that the pings are sent every 3 -5 mins
e.g defaults.ipm_ping_interval = 5 * 60 * 1000;
-
Install the ABP build
-
Send a campaign from MoEngage
-
Open background page of extension and wait for next ping
-
Go to https://abandonedonline.net/ and click "allow" to allowlist the page
Observed behavior
-
The console shows an error, “[Telemetry]: Error parsing IPM response. TypeError: Failed to execute 'json' on 'Response': body stream already read at background.js:2988:14”
-
The network tab shows the json response but the IPM dialog is not shown after the web allowlisting
Expected behavior
- Console error is not shown
- IPM dialog is shown after web allowlisting
Further information
Campaign Information
{ "device_id": "8a2758d7-ded9-4c10-958f-318e6dc8e7d6", "ipm_id": "campaign_3006231720", "version": 1, "sub_title": "Tired of websites asking you to turn off your ad blocker?", "upper_body": "Getting to the content you want doesn't have to come with seeing annoying ads.", "lower_body": "Resume blocking ads on this site and see fewer anti-adblock pop-ups in the future with Adblock Plus Premium!", "button_label": "Upgrade now", "button_target": "/download?id=foo", "timing": "after_web_allowlisting", "display_duration": 1, "command_name": "create_on_page_dialog" }