Skip to content

Error: cannot enable long stack traces after promises have been created

benjamingr edited this page Feb 6, 2014 · 3 revisions

Error: cannot enable long stack traces after promises have been created.

You are getting this method because you are calling Promise.longStackTraces after a promise has been created.

When using longStackTraces the first line in your code after requiring Bluebird should be:

Promise.longStackTraces()

See the API page about longStackTraces

Info: Since longStackTraces has a performance penalty, in order to prevent that penalty in normal code Bluebird either captures longStackTraces or doesn't, otherwise we'd have to constantly 'check'.