-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RangeError: Maximum call stack exceeded #1326
Comments
So the chain of events seems to be: When
where the next value in the chain has its
where, because the next value in the chain isn't a promise, I don't know what the |
I saw the same issue and stripped the problem down to this code snippet: Promise.each(new Array(10000),(a,ix)=>{`
if (ix===0) return Promise.delay(0);
}); The Maximum call stack size exceeded problem seems to occur with long promise chains, which includes a mix of synchronous and asynchronous promise handling.
As a workaround you would have to make all fulfillments via |
The error also occurs in Chrome browser, version 56.0.2924.87 (64-bit) (and probably other versions) |
Have the same problem with Promise.reduce. |
I also got this problem with |
Has there been any movement on this? |
Having the same issue using v3.5.1. |
Why you need any movement here in 2018, everybody use async / await :) |
@Dzenly I am using async / await but I still need bluebird for IE11. |
bluebird v3.4.7 on linux nodejs 6.9.4
The following test code produces a RangeError:
The text was updated successfully, but these errors were encountered: