question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ionic 3.7.0 - Client init generates never ending error loop

See original GitHub issue

I’ve just upgraded from Ionic 3.6.1 to 3.7.0 and the raven client generates the following error loop:

TypeError: Cannot read property 'function' of undefined
    at global.service.ts:112
    at wrapped (raven.js:321)
    at t.invokeTask (polyfills.js:3)
    at Object.onInvokeTask (core.es5.js:3881)
    at t.invokeTask (polyfills.js:3)
    at r.runTask (polyfills.js:3)
    at e.invokeTask (polyfills.js:3)
    at i.isUsingGlobalCallback.invoke (polyfills.js:3)
    at n (polyfills.js:2)
polyfills.js:2 Uncaught RangeError: Maximum call stack size exceeded
v @ polyfills.js:2
(anonymous) @ polyfills.js:3
o.(anonymous function) @ polyfills.js:2
(anonymous) @ raven.js:1023
_makeRequest @ raven.js:1704
_sendProcessedPayload @ raven.js:1628
_send @ raven.js:1570
_processException @ raven.js:1344
_handleStackInfo @ raven.js:1250
captureException @ raven.js:388
wrapped @ raven.js:324
C @ polyfills.js:3
wrapped @ raven.js:321
C @ polyfills.js:3
wrapped @ raven.js:321
C @ polyfills.js:3
wrapped @ raven.js:321
wrapped @ raven.js:321
C @ polyfills.js:3
wrapped @ raven.js:321
C @ polyfills.js:3
console.js:26 RangeError: Maximum call stack size exceeded
    at Object.<anonymous> (stringify.js:38)
    at JSON.stringify (<anonymous>)
    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.C (polyfills.js:3)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (raven.js:321)

I am using 3.1.7.0 and the problem appears also in the Ionic starter templates.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jesusbotellacommented, Sep 29, 2017

I have just found that it is not a Raven error, but a Zone.js error. You can solve it by using zone.js 0.8.18.

You can read more about it here: https://github.com/angular/zone.js/issues/886

EDIT: It doesn’t seem to solve the problem, even though I installed Zone.js 0.8.18. When I try to log an error via Raven, the Maximum call stack size exceeded error happens again.

0reactions
kamilogorekcommented, Sep 29, 2017

Investigation. Closing this one in favour of one cumulative issue https://github.com/getsentry/raven-js/issues/1064

Read more comments on GitHub >

github_iconTop Results From Across the Web

Raven.js XHR wrapped state change handlers ... - GitHub
js with Zone.js. Ref: Ionic 3.7.0 - Client init generates never ending error loop #1062 · raven-js infinite loop on errors in angular...
Read more >
Bug listing with status RESOLVED with resolution NEEDINFO ...
Never get to prompt" status:RESOLVED resolution:NEEDINFO severity:critical ... Bug:55724 - "/var/lib/init.d/softscripts/* write error at boot sequence ...
Read more >
How to Upload Files to a Server with Ionic - Morioh
In this Ionic tutorial, we build a server that accepts file uploads in Node/Express as well as a frontend application that uses the...
Read more >
History | Jekyll • Simple, blog-aware, static sites
fix: pin rubocop to 1.12 due to error with ruby 2.4 (#8651); Load Jekyll plugins from BUNDLE_GEMFILE location (#8585); fix(security): CVE-2021-28834 (#8680) ...
Read more >
Search Results - CVE
The mission of the CVE® Program is to identify, define, and catalog publicly disclosed cybersecurity vulnerabilities.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found