[SOLVED] RangeError while installing Raven


#1

Hello,

I’m new here and just starting out with Raven and Sentry. But during the normal steps needed to initiate Raven I’m already getting a recursing error. :frowning: I’m using Angular 4.2.4 with the Angular CLI 1.3.2. Please forgive me if I am not providing all the necessary info, I would love to but since I have no clue where the error is coming from I’m not sure what the necessary info is.

I have an import * as Raven from ‘raven-js’ and have integrated the RavenErrorHandler according to documentation. When I run the command: “Raven.config(‘https://xxxx@sentry.io/yyy’).install();” in my app.module.ts i get the error below multiple times and there is also a warning.

If someone would be able to help me that would greatly be appreciated.

Regards,

Pieter-Bas

Warning:
[Violation] ‘readystatechange’ handler took 1050ms

Error:
RangeError: Maximum call stack size exceeded
at Object. (stringify.js:36)
at Object.stringify ()
at stringify (stringify.js:25)
at Raven._makeRequest (raven.js:1705)
at Raven._sendProcessedPayload (raven.js:1628)
at Raven._send (raven.js:1570)
at Raven._processException (raven.js:1344)
at Raven._handleStackInfo (raven.js:1250)
at Raven.captureException (raven.js:388)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:324)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)
at XMLHttpRequest.wrapFn (zone.js:1075)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)


3rd Party Credit Card Processing Problems
#2

Hey @pbkooy, please read this issue + the one linked in the last comment https://github.com/getsentry/raven-js/issues/1027


#3

Hey @kamilogorek!

Thank you so much! I am so grateful, my attempts to Google the answer came up empty everytime. This fixed in an instant!

Thank you again,

Pieter-Bas


#4

Hey @pbkooy, just wanted to let you know that this issue is already resolved on Zone.js side (waiting for a patched version to be released to npm) and you’ll be able to use any version of it, without locking it. Please keep an eye on https://github.com/getsentry/raven-js/issues/1016 :slight_smile:


#5

Upgrading zone.js to 0.8.18 fixed this problem for me :grin: