Giter Site home page Giter Site logo

Comments (5)

overlookmotel avatar overlookmotel commented on July 17, 2024 1

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.

DavidMorton avatar DavidMorton commented on July 17, 2024

I just had this same error in production on several servers....

from cls-bluebird.

DavidMorton avatar DavidMorton commented on July 17, 2024

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.

overlookmotel avatar overlookmotel commented on July 17, 2024

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.

charlie-s avatar charlie-s commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.