dmanjunath / node-redshift

A simple collection of tools to help you get started with Amazon Redshift from node.js
69 stars 48 forks source link

library shouldn't attempt to configure bluebird #27

Open gavinsharp opened 6 years ago

gavinsharp commented 6 years ago

When trying to test a simple query, I got: Error: cannot enable long stack traces after promises have been created

This exception was thrown by bluebird because my app created a promise before calling into node-redshift.

I eventually figured out I could work around this by passing { longStackTraces: false }, but I think that shouldn't be necessary - it's not uncommon for apps to be using promises elsewhere. I suggest making the default value of longStackTraces false, or removing it as an option altogether (library consumers can call Promise.config themselves if desired).

gavinsharp commented 6 years ago

Oh and thanks for the very useful library, by the way :)