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
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at /home/user/Code/node-quickbooks/index.js:2498:27
at tryCatcher (/home/user/Code/node-quickbooks/node_modules/bluebird/js/main/util.js:24:31)
at Promise._settlePromiseFromHandler (/home/user/Code/node-quickbooks/node_modules/bluebird/js/main/promise.js:454:31)
at Promise._settlePromiseAt (/home/user/Code/node-quickbooks/node_modules/bluebird/js/main/promise.js:530:18)
at Promise._settlePromises (/home/user/Code/node-quickbooks/node_modules/bluebird/js/main/promise.js:646:14)
at Async._drainQueue (/home/user/Code/node-quickbooks/node_modules/bluebird/js/main/async.js:177:16)
at Async._drainQueues (/home/user/Code/node-quickbooks/node_modules/bluebird/js/main/async.js:187:10)
at Immediate.Async.drainQueues [as _onImmediate] (/home/user/Code/node-quickbooks/node_modules/bluebird/js/main/async.js:15:14)
I checking line node-quickbooks/index.js:2498 and i debug return data in callback and i saw Array with request results.
The cause of the problem:
in module.request passing 3 arguments to callback
after module.requestPromise = Promise.promisify(module.request)
and after promise resolve we get array with body and req
Promise.promisify convert arguments to array if length > 2.
This cause of error,
The text was updated successfully, but these errors were encountered:
I call this:
Then i get error:
I checking line
node-quickbooks/index.js:2498
and i debug return data in callback and i saw Array with request results.The cause of the problem:
module.request
passing 3 arguments to callbackmodule.requestPromise = Promise.promisify(module.request)
body
andreq
Promise.promisify
convert arguments to array iflength > 2
.This cause of error,
The text was updated successfully, but these errors were encountered: