bcnode icon indicating copy to clipboard operation
bcnode copied to clipboard

ERROR rover.wav.rover Rejected promise, trace: TypeError [ERR_INVALID_ARG_TYPE]

Open Simon0x opened this issue 6 years ago • 0 comments

Prerequisites

  • [x] Are you running the latest version?
  • [x] Did you build from source?
  • [x] Do you use the master branch?
  • [x] Did you check the README.md for steps to run?
  • [x] Did you check logs? (either in console or in _logs directory)

For more information, see the CONTRIBUTING guide.

Description

The wav rover has a rejected promise because of wrong argument type.

Steps to Reproduce

  1. Run latest version of the miner

Expected behavior: This should be handled and the error should not occure

Actual behavior: Sometimes the wav rover has wrong arguments

Versions

(0.5.5/124bab0)

Application (required)

You can get this information:

  • Built from source
  • Run the miner using forever: forever start ./bin/cli start --miner-key CryptoSmileee --node --ui --ws

Environment (optional but helpful)

  • OS Version (Ubuntu 17.10)
  • Nodejs (v9.11.1)
  • Rust (rustc 1.27.0-nightly (ad610bed8 2018-04-11))

Logs

Full Log: telobot.com/YD2o.log

 2018-05-17T05:20:37.485Z ERROR	rover.wav.rover Rejected promise, trace:
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer,   Array, or Array-like Object. Received type undefined
at Function.from (buffer.js:195:11)
at exports.blake2b.input (/home/bc/bcnode/lib/utils/crypto.js:23:32)
at getMerkleRoot (/home/bc/bcnode/lib/rover/wav/controller.js:29:12)
at _createUnifiedBlock (/home/bc/bcnode/lib/rover/wav/controller.js:50:11)
at createUnifiedBlock (/home/bc/bcnode/lib/rover/helper.js:25:24)
at getBlock.then.lastBlock (/home/bc/bcnode/lib/rover/wav/controller.js:117:34)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:182:7) 

Simon0x avatar May 17 '18 08:05 Simon0x