Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insight into promisifyAll bug? #1010

Closed
tnrich opened this issue Oct 6, 2015 · 2 comments
Closed

Insight into promisifyAll bug? #1010

tnrich opened this issue Oct 6, 2015 · 2 comments

Comments

@tnrich
Copy link

tnrich commented Oct 6, 2015

Hey there, when running our app (connected to an oracle db backend currently), we occasionally get the following error:

/Users/tnrich/Sites/ve/api_server_bookshelf/node_modules/bluebird/js/main/promisify.js:280
        throw new TypeError("the target of promisifyAll must be an object or a
              ^
TypeError: the target of promisifyAll must be an object or a function

    See http://goo.gl/9ITlV0

    at Function.Promise.promisifyAll (/Users/tnrich/Sites/ve/api_server_bookshelf/node_modules/bluebird/js/main/promisify.js:280:15)
    at /Users/tnrich/Sites/ve/api_server_bookshelf/node_modules/knex/lib/dialects/oracle/index.js:77:17

Does anyone have any ideas/recommendations for fixing it? Thanks!

@vschoettke
Copy link
Collaborator

There is probably a problem connecting to the db. The promisifyAll was called before the check if the connection had an error. This was already fixed in #905. But no updated version has been published yet.

@tnrich
Copy link
Author

tnrich commented Oct 6, 2015

Awesome thanks for the info @vschoettke! Any idea when a new version might be published?

@wubzz wubzz closed this as completed Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants