Skip to content
Advertisement

Tag: node-mysql2

make mysql connection error in lambda, why?

I wonder difference to main, function environment nodejs 14.x mysql2 2.2.3 I made code, call pool.getconnection in main, it’s fine(success data from db) but can’t get a data from function. I wonder why this can’t get from function can’t find error log only find Promise pending.. Promise { } Answer The getConnection method does not return a Promise, you should

Advertisement