RangeError: Maximum call stack size exceeded
See original GitHub issue- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
Package + Version
-
@sentry/browser
-
@sentry/node
-
raven-js
-
raven-node
(raven for node) - other:
Version:
4.0.6
Description
I got the following errors multiple times:
FIRST
RangeError: Maximum call stack size exceeded at String.includes (<anonymous>) at clientRequest.emit (…/node_modules/@sentry/node/dist/integrations/http.js:94:97)
Issues on sentry: https://sentry.io/dymafr/express-app/issues/704935865/?query=is:unresolved
SECOND RangeError: Maximum call stack size exceeded at String.includes (<anonymous>) at clientRequest.emit (…node_modules/@sentry/node/dist/integrations/http.js:81:21)
Call: /**
- Wrapper function for request’s
emit
calls */ function emitWrapper(origEmit) { return function (event, response) { // I’m not sure why but Node.js (at least in v8.X) // is emitting all events twice 😐 if (lastResponse === undefined || lastResponse !== response) { lastResponse = response; } else { return origEmit.apply(this, arguments);
Issues on sentry: https://sentry.io/dymafr/express-app/issues/704810638/?query=is:unresolved
I have no clue where they come from.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
javascript - Maximum call stack size exceeded error
It means that somewhere in your code, you are calling a function which in turn calls another function and so forth, until you...
Read more >JavaScript Error: Maximum Call Stack Size Exceeded
If you see the “Maximum Call Stack Size Exceeded” error, there's likely a problem with a recursive function within your JavaScript code.
Read more >RangeError: Maximum call stack size exceeded - Educative.io
The most common source for this error is infinite recursion. You must have a recursive function in your code whose base case is...
Read more >Uncaught RangeError: Maximum call ... - Net-Informations.Com
This error is almost always means you have a problem with recursion in JavaScript code, as there isn't any other way in JavaScript...
Read more >How to fix: "RangeError: Maximum call stack size exceeded"
A "RangeError: Maximum call stack size exceeded" is an error that occurs when a function or operation tries to execute too many nested...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Perfect, thanks @darkobits. I’ll investigate it.
I’m experiencing this same issue. Instead of
socket.io
, I’m using theaws-sdk
.Here’s a minimal test case:
Repo with this test: https://github.com/darkobits/sentry-range-error
With
Sentry.init
being called, you can get up to 4,500 requests before aRangeError
is thrown. This is about the same number I am getting in my other project as well.With
Sentry.init
removed, the test runs indefinitely.