You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`[Validation Error] "page" was called with invalid params. Could not validate due to "RangeError: Maximum call stack size exceeded". This can be caused by passing a cyclic data structure as a parameter. Refrain from passing a cyclic data structure or sanitize it beforehand.`
314
-
);
315
-
}
316
-
throwerror;
309
+
returnthis.handleMethodError(error,'page');
317
310
}
318
311
};
319
312
@@ -337,14 +330,7 @@ export class Ninetailed implements NinetailedInstance {
337
330
);
338
331
returnthis.ninetailedCorePlugin.flush();
339
332
}catch(error){
340
-
logger.error(errorasError);
341
-
342
-
if(errorinstanceofRangeError){
343
-
thrownewError(
344
-
`[Validation Error] "track" was called with invalid params. Could not validate due to "RangeError: Maximum call stack size exceeded". This can be caused by passing a cyclic data structure as a parameter. Refrain from passing a cyclic data structure or sanitize it beforehand.`
345
-
);
346
-
}
347
-
throwerror;
333
+
this.handleMethodError(error,'track');
348
334
}
349
335
};
350
336
@@ -369,14 +355,7 @@ export class Ninetailed implements NinetailedInstance {
369
355
);
370
356
returnthis.ninetailedCorePlugin.flush();
371
357
}catch(error){
372
-
logger.error(errorasError);
373
-
374
-
if(errorinstanceofRangeError){
375
-
thrownewError(
376
-
`[Validation Error] "identify" was called with invalid params. Could not validate due to "RangeError: Maximum call stack size exceeded". This can be caused by passing a cyclic data structure as a parameter. Refrain from passing a cyclic data structure or sanitize it beforehand.`
377
-
);
378
-
}
379
-
throwerror;
358
+
this.handleMethodError(error,'identify');
380
359
}
381
360
};
382
361
@@ -414,14 +393,7 @@ export class Ninetailed implements NinetailedInstance {
414
393
awaitPromise.all(promises);
415
394
returnthis.ninetailedCorePlugin.flush();
416
395
}catch(error){
417
-
logger.error(errorasError);
418
-
419
-
if(errorinstanceofRangeError){
420
-
thrownewError(
421
-
`[Validation Error] "batch" was called with invalid params. Could not validate due to "RangeError: Maximum call stack size exceeded". This can be caused by passing a cyclic data structure as a parameter. Refrain from passing a cyclic data structure or sanitize it beforehand.`
422
-
);
423
-
}
424
-
throwerror;
396
+
this.handleMethodError(error,'batch');
425
397
}
426
398
};
427
399
@@ -444,14 +416,7 @@ export class Ninetailed implements NinetailedInstance {
444
416
});
445
417
returnthis.ninetailedCorePlugin.flush();
446
418
}catch(error){
447
-
logger.error(errorasError);
448
-
449
-
if(errorinstanceofRangeError){
450
-
thrownewError(
451
-
`[Validation Error] "trackStickyComponentView" was called with invalid params. Could not validate due to "RangeError: Maximum call stack size exceeded". This can be caused by passing a cyclic data structure as a parameter. Refrain from passing a cyclic data structure or sanitize it beforehand.`
`[Validation Error] "${method}" was called with invalid params. Could not validate due to "RangeError: Maximum call stack size exceeded". This can be caused by passing a cyclic data structure as a parameter. Refrain from passing a cyclic data structure or sanitize it beforehand.`
0 commit comments