You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new warnings introduces by bluebird 3 are quite handy to avoid bugs, but the error they refer to can be quite hard to pinpoint in large codebases:
Warning: a promise was created in a handler but was not returned from it
at processImmediate [as _immediateCallback] (timers.js:367:17)
In my case this was due to the use of old-style callbacks that didn't return anything, but maybe Bluebird could somewhat use the longStackTrace mechanism to indicate the origin of the error to facilitate debugging.
Activity
petkaantonov commentedon Nov 9, 2015
There should be a long stack trace as this warning is not even enabled if long stack traces are not enabled
floross commentedon Nov 10, 2015
Long stack traces are enable but I go the error above anyway.
My bluebird configuration:
floross commentedon Nov 10, 2015
This code can reproduce the error:
This warning show up:
Ps: I'am currently using the
3.0.5version of bluebirdpetkaantonov commentedon Nov 10, 2015
Thanks, I'll look into it
Fixes #861
petkaantonov commentedon Dec 1, 2015
This was actually bug with Promise.resolve rather than the warning system