mixpanel-js icon indicating copy to clipboard operation
mixpanel-js copied to clipboard

InternalError too much recursion

Open maxcodes opened this issue 7 years ago • 4 comments

Full Stack trace: https://sentry.io/share/issue/96786166aa7347e2af2c5ed1a733602a/

Can't really comment much since this is minified, but in my application (heavy traffic), I've only encountered this bug a couple times. Thanks

maxcodes avatar May 28 '18 21:05 maxcodes

I had the same issue and found the cause being the mixpanel script being loaded twice.

We have mixpanel.js and initialization code in a partial called from our main layout. I found that someone called the mixpanel partial from another place in our templates as well that caused the script and initialization code to run twice. This caused the recursion error.

chasay avatar Jun 23 '18 00:06 chasay

Thanks for that @chasay! I wonder if we can make the error a little more clear, I've seen other libraries do something like "You've loaded X twice, please make sure you're only including the snippet once". That would be helpful 🙂

maxcodes avatar Jun 25 '18 22:06 maxcodes

👍 using segment + mixpanel (device mode) and getting this error

adamboxman avatar Oct 12 '21 18:10 adamboxman

👍 using segment + mixpanel (device mode) and getting this error

for me, this was a segment issue NOT mixpanel's. it turns out this was due to the analytics.load used directly after installing the analytics.js from a script tag as proposed in the docs here. removing the load call fixed it.

image

adamboxman avatar Oct 13 '21 02:10 adamboxman