You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Data was inserted into db successfully.
But it's caught by try-catch and console.log output this TypeError: Cannot read property '0' of undefined at query.catch.then.then.queryResult (C:\Website\node_modules\sequelize\lib\dialects\postgres\query.js:112:17) at tryCatcher (C:\Website\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (C:\Website\node_modules\bluebird\js\release\promise.js:512:31) at Promise._settlePromise (C:\Website\node_modules\bluebird\js\release\promise.js:569:18) at Promise._settlePromise0 (C:\Website\node_modules\bluebird\js\release\promise.js:614:10) at Promise._settlePromises (C:\Website\node_modules\bluebird\js\release\promise.js:693:18) at Async._drainQueue (C:\Website\node_modules\bluebird\js\release\async.js:133:16) at Async._drainQueues (C:\Website\node_modules\bluebird\js\release\async.js:143:10) at Immediate.Async.drainQueues (C:\Website\node_modules\bluebird\js\release\async.js:17:14) at runCallback (timers.js:800:20) at tryOnImmediate (timers.js:762:5) at processImmediate [as _immediateCallback] (timers.js:733:5)
What you are doing?
What do you expect to happen?
Not been caught by try-catch block.
What is actually happening?
Data was inserted into db successfully.
But it's caught by try-catch and console.log output this
TypeError: Cannot read property '0' of undefined at query.catch.then.then.queryResult (C:\Website\node_modules\sequelize\lib\dialects\postgres\query.js:112:17) at tryCatcher (C:\Website\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (C:\Website\node_modules\bluebird\js\release\promise.js:512:31) at Promise._settlePromise (C:\Website\node_modules\bluebird\js\release\promise.js:569:18) at Promise._settlePromise0 (C:\Website\node_modules\bluebird\js\release\promise.js:614:10) at Promise._settlePromises (C:\Website\node_modules\bluebird\js\release\promise.js:693:18) at Async._drainQueue (C:\Website\node_modules\bluebird\js\release\async.js:133:16) at Async._drainQueues (C:\Website\node_modules\bluebird\js\release\async.js:143:10) at Immediate.Async.drainQueues (C:\Website\node_modules\bluebird\js\release\async.js:17:14) at runCallback (timers.js:800:20) at tryOnImmediate (timers.js:762:5) at processImmediate [as _immediateCallback] (timers.js:733:5)
Dialect: postgres
Database version: pg@7.0.2
Sequelize version: 4.4.2
It used to work as expected on pg@6.4.1.
The text was updated successfully, but these errors were encountered: