Comments (5)
Hi @iamnewspecies.
This is not a known issue. Have you confirmed that this error is due to cls-bluebird? It seems more likely to me that it's not, or that you/Sequelize are using cls-bluebird incorrectly and not exiting contexts after each request. I guess that could result in every request being stacked on top of the last.
Please come back to me when you've investigated further.
from cls-bluebird.
I just had this same error in production on several servers....
from cls-bluebird.
bluebird/lib/shimOnCancel.js:41:40)
at Promise. (/spotv2/spot2/api/node_modules/cls-bluebird/lib/shimOnCancel.js:41:40)
at Promise. (/spotv2/spot2/api/node_modules/cls-bluebird/lib/shimOnCancel.js:41:40)
at Promise. (/spotv2/spot2/api/node_modules/cls-bluebird/lib/shimOnCancel.js:41:40)
at Promise. (/spotv2/spot2/api/node_modules/cls-bluebird/lib/shimOnCancel.js:41:40)
at Promise. (/spotv2/spot2/api/node_modules/cls-bluebird/lib/shimOnCancel.js:41:40)
at Promise. (/spotv2/spot2/api/node_modules/cls-bluebird/lib/shimOnCancel.js:41:40)
at Promise. (/spotv2/spot2/api/node_modules/cls-bluebird/lib/shimOnCancel.js:41:40)
at Promise. (/spotv2/spot2/api/node_modules/cls-bluebird/lib/shimOnCancel.js:41:40)
at Promise. (/spotv2/spot2/api/node_modules/cls-bluebird/lib/shimOnCancel.js:41:40)
at Promise. (/spotv2/spot2/api/node_modules/cls-bluebird/lib/shimOnCancel.js:41:40)
at Promise. (/spotv2/spot2/api/node_modules/cls-bluebird/lib/shimOnCancel.js:41:40)
from cls-bluebird.
My apologies. This does sound like it could be an bug in cls-bluebird.
@DavidMorton Can you please share some more details?
- Are you using promise cancellation?
- What version of Node are you running?
- Latest version of cls-bluebird?
- What version of bluebird are you using?
- Any other code you can share
I'll try to get to the bottom of this if I possibly can.
from cls-bluebird.
We're getting this suddenly in production as well. Ex:
Unhandled rejection RangeError: Maximum call stack size exceeded
at executorPatched (/app/node_modules/cls-bluebird/lib/shimOnCancel.js:1:1)
at executorPatched (/app/node_modules/cls-bluebird/lib/shimOnCancel.js:37:21)
at executorPatched (/app/node_modules/cls-bluebird/lib/shimOnCancel.js:37:21)
at executorPatched (/app/node_modules/cls-bluebird/lib/shimOnCancel.js:37:21)
...
- Node v10.15.2
- Sequelize v5.21.3
- bluebird v3.5.5
- cls-bluebird v2.1.0
We're not using bluebird/cls-bluebird directly at all, but it's a dependency of Sequelize so somewhere under the hood they're using. We're trying to find a way to replicate outside of "let it run in production for about 2 hours...", once I can get more info I'll post here, it may help others.
from cls-bluebird.
Related Issues (13)
- how to run test? HOT 2
- Clarifying purpose of cls-bluebird HOT 3
- Not working with bluebird v3 HOT 8
- Re-write of tests HOT 3
- Enable Travis HOT 2
- `Promise.reduce()` broken in bluebird v2 HOT 2
- Change approach to how this patch works internally HOT 7
- LICENSE file HOT 2
- await is not working :( HOT 4
- cls and promisify HOT 2
- Broke with Bluebird 3.5.1
- Does cls-bluebird also work with cls-hooked?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cls-bluebird.