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

the callback in funtion createMysqlPool of dao-pool.js is not a function??? #47

Open
zhangmin6688 opened this issue Feb 22, 2017 · 6 comments

Comments

@zhangmin6688
Copy link

TypeError: callback is not a function
at Object.create (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\lib\dao\mysql\dao-pool.js:29:9)
at Pool._createResource (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\generic-pool\lib\Pool.js:279:42)
at Pool._dispense (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\generic-pool\lib\Pool.js:210:12)
at Pool.acquire (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\generic-pool\lib\Pool.js:406:10)
at Object.NND.query (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\lib\dao\mysql\mysql.js:25:8)
at Object.userDao.getUserByName (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\lib\dao\userDao.js:12:9)
at E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\app.js:54:11
at callbacks (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\express\lib\router\index.js:272:11)
at param (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\express\lib\router\index.js:246:11)
at pass (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\express\lib\router\index.js:253:5)

@zhangmin6688
Copy link
Author

no person answer me???

@shuidong
Copy link

I met the same problem...

@kisszoltan
Copy link

kisszoltan commented Feb 27, 2017

I face the same issue and from the looks of it i suspect this commit. (After reverting the change and downgrading to generic-pool 1.0.9 it is back to normal again.)

Also there seem to be a pull request aiming to fix this. (just tested it, and it solves the problem.)

@kibozh
Copy link

kibozh commented Apr 2, 2017

没有人解决这个问题吗,官方的demo居然有bug没有人去修复。。。提交了pr也不理。。。

@peterz3g
Copy link

我也遇到同样的问题。
TypeError: callback is not a function

1 similar comment
@JasonMrQ
Copy link

我也遇到同样的问题。
TypeError: callback is not a function

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

6 participants