PiotrMisiurek / screw-it-lets-do-it

5 stars 4 forks source link

Invalid Argument: Argument is expected to be an array of inventory objects #2

Open dzarezenko opened 6 years ago

dzarezenko commented 6 years ago

When I am trying run this script I receive this one errors stack:

Invalid Argument: Argument is expected to be an array of inventory objects
Error
    at NodeError (/home/bitcore/.nvm/versions/node/v8.4.0/lib/node_modules/bitcore/node_modules/bitcore-lib/lib/errors/index.js:20:41)
    at Object.checkArgument (/home/bitcore/.nvm/versions/node/v8.4.0/lib/node_modules/bitcore/node_modules/bitcore-lib/lib/util/preconditions.js:14:13)
    at Object.checkInventory (/home/bitcore/.nvm/versions/node/v8.4.0/lib/node_modules/bitcore/node_modules/bitcore-p2p/lib/messages/utils.js:11:7)
    at new InvMessage (/home/bitcore/.nvm/versions/node/v8.4.0/lib/node_modules/bitcore/node_modules/bitcore-p2p/lib/messages/commands/inv.js:21:9)
    at Messages.exported.commands.(anonymous function) [as Inventory] (/home/bitcore/.nvm/versions/node/v8.4.0/lib/node_modules/bitcore/node_modules/bitcore-p2p/lib/messages/builder.js:68:14)
    at P2P.sendTransaction (/home/bitcore/.nvm/versions/node/v8.4.0/lib/node_modules/bitcore/node_modules/bitcore-node/lib/services/p2p/index.js:101:33)
    at TransactionService.sendTransaction (/home/bitcore/.nvm/versions/node/v8.4.0/lib/node_modules/bitcore/node_modules/bitcore-node/lib/services/transaction/index.js:223:13)
    at TxController.send (/home/bitcore/.nvm/versions/node/v8.4.0/lib/node_modules/bitcore/node_modules/insight-api/lib/transactions.js:327:21)
    at Layer.handle [as handle_request] (/home/bitcore/.nvm/versions/node/v8.4.0/lib/node_modules/bitcore/node_modules/express/lib/router/layer.js:95:5)
    at next (/home/bitcore/.nvm/versions/node/v8.4.0/lib/node_modules/bitcore/node_modules/express/lib/router/route.js:137:13)

and I don't see what line of my code produced this error and how can I fix it.

Thanks for your help!