Amplitude-JavaScript icon indicating copy to clipboard operation
Amplitude-JavaScript copied to clipboard

Error callback for 'identify' not called a 2nd time when using ad blocker

Open pioug opened this issue 4 years ago • 1 comments

Expected Behavior

One of the callback should be called every time client.identify() is called.

client.identify(identity, () => console.log('success'), () => console.log'error')));

Current Behavior

When uBlock is enabled, the error callback is called only once. If I refresh the page no callbacks are called and my promise is never resolved.

Possible Solution

Steps to Reproduce

0:18 uBlock disabled, refresh, success callback called ✅ 0:34 uBlock enabled, refresh, error callback called ✅ 0:50 uBlock enabled, refresh, no callback called ❌

https://user-images.githubusercontent.com/3654180/147656429-79a69a9e-49eb-458f-9d86-2bc238cc2893.mp4

Environment

  • JS SDK Version: [email protected]
  • Installation Method: npm
  • Browser and Version: Chrome 96 with uBlock Origin 1.39.2

pioug avatar Dec 29 '21 11:12 pioug

cc: @kevinpagtakhan

yuhao900914 avatar Dec 29 '21 15:12 yuhao900914