Repository navigation
Closed
Description
As soon as raven-js is called the angular app no longer works but only start some kind of infinite loop:
at http://localhost:4200/polyfills.bundle.js:5303:31
at XMLHttpRequest.proto.(anonymous function) (http://localhost:4200/polyfills.bundle.js:3819:24)
at XMLHttpRequest.open (http://localhost:4200/vendor.bundle.js:4636:37)
at Raven._makeRequest (http://localhost:4200/vendor.bundle.js:5317:17)
at Raven._sendProcessedPayload (http://localhost:4200/vendor.bundle.js:5241:56)
at Raven._send (http://localhost:4200/vendor.bundle.js:5183:22)
at Raven._processException (http://localhost:4200/vendor.bundle.js:4957:14)
at Raven._handleStackInfo (http://localhost:4200/vendor.bundle.js:4863:14)
at Raven.captureException (http://localhost:4200/vendor.bundle.js:4001:18)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3937:22)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
Start a new angular-cli app using ng new, add the npm raven-js dependency, import and call it from the app.module.ts,
This is a minimal repository containing only an empty angular-cli app, the raven-js dep and just the initializing code (Raven.config().install() is enough to trigger the problem): https://github.com/esistgut/raventest
Reacted by Ian Paterson, SCD, Shane Husson, Sijmen, Bob Myers, Simon Altschuler and Michael Black Ritter
Metadata
Metadata
Assignees
Labels
No labels
Activity
colthreepv commentedon Aug 24, 2017
we tracked back the cause to
zone.js@0.8.17, with the previous minor release,0.8.16everything still workstlaverdure commentedon Aug 28, 2017
I am experiencing this as well.
LukasKlement commentedon Sep 9, 2017
Same issue here with angluar-cli 1.4.0 and zone.js 0.8.16.
The following console errors are thrown:
Firefox: InternalError: too much recursion
Other browsers: RangeError: Maximum call stack size exceeded
rtm commentedon Sep 11, 2017
Is it likely that this problem can be solved in a future version of Raven? I would prefer not to have to lock down my version of
zone.jsfor this kind of compatibility issue.mkoczorowski commentedon Sep 11, 2017
+1
kamilogorek commentedon Sep 11, 2017
@LukasKlement @rtm @mkoczorowski, this issue is not on Raven.js implementation side, but rather on Zone.js. Thankfully they already patched it 5 days ago, and things are working correctly now.
It just has to be released as a patched version to npm. Please see 2 recent commits from Sep 6th – https://github.com/angular/zone.js/commits/master
You can test it yourself locally by changing your
zone.jsin yourpackage.jsontogit@github.com:angular/zone.js.git#d4e5ae8f6e72f0b4ef8e816e369530b72e582ba7, eg.kamilogorek commentedon Sep 22, 2017
To be more specific (as there are still plenty of reports of this issue), this is the commit that'll fix it – angular/zone.js@d4e5ae8
kblestarge commentedon Oct 10, 2017
Ride on!
Upgrading
zone.jsto0.8.18worked for my Angular v.4+ app.mxman06 commentedon Oct 11, 2017
@kblestarge
Are you sure ? I just upgraded zone.js to 0.8.18 and still have the loop error :(
LukasKlement commentedon Oct 11, 2017
@mxman06 it works for me with zone.js 0.8.18 - perhaps there is another culprit?