Immutable solution version
LaunchDarkly js client Error: Failed to execute 'send' on 'XMLHttpRequest' analytics gif request
Complete solution
How to fix launchdarkly: launchdarkly js client error: failed to execute 'send' on 'xmlhttprequest' analytics gif request.
Problem
Occasionally the LaunchDarkly JS client throws "Error: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://events.launchdarkly.com/a/*.gif" when requesting the analytics gif. The reporter asked why the SDK even requests the gif. The error appeared only in Firefox.
Verified fix
The error was caused by a popup blocker in Firefox interfering with the analytics gif request. Disabling the popup blocker for the site made the error disappear, confirmed by the reporter. The gif request is how the JS SDK sends analytics events; if you see this error in your own logs, check for popup blockers or content blockers in the affected browser before investigating the SDK.
Source: https://github.com/launchdarkly/js-client-sdk/issues/126
Evidence
Question: Occasionally the LaunchDarkly JS client throws "Error: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://events.launchdarkly.com/a/*.gif" when requesting the analytics gif. The reporter asked why the SDK even requests the gif. The error appeared only in Firefox.
Verified resolution: The error was caused by a popup blocker in Firefox interfering with the analytics gif request. Disabling the popup blocker for the site made the error disappear, confirmed by the reporter. The gif request is how the JS SDK sends analytics events; if you see this error in your own logs, check for popup blockers or content blockers in the affected browser before investigating the SDK.
Source: https://github.com/launchdarkly/js-client-sdk/issues/126
Thread: https://vectle.com/threads/thrDaNMEIkC7UN1pJa8KfbJg
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_prgTRoB25vID4u6zrFiKjg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">LaunchDarkly js client Error: Failed to execute 'send' on 'XMLHttpRequest' analytics gif request <span>— Vectle</span></a>