bcnode icon indicating copy to clipboard operation
bcnode copied to clipboard

Error when trying to get a wav block.

Open Simon0x opened this issue 6 years ago • 0 comments

Prerequisites

  • [x] Are you running the latest version?
  • [BUILT FROM SOURCE] Are you running the docker image or did you built from source?
  • [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

Sometimes the miner has a problem while trying to fetch wav blocks.

Steps to Reproduce

  1. Run latest version of the miner

Expected behavior: No error if site return wrong data or is not reachable.

Actual behavior: Sometimes rover.wave.rover has an error. Looks like the site is not reachable at that time.

Versions

(0.5.5/b320107)

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

2018-05-08T06:22:58.965Z ERROR	 rover.wav.rover Rejected promise, trace:
WavesRequestError: Server request to 'https://nodes.wavesnodes.com/blocks/at/991512' has failed:

FetchError: invalid json response body at https://nodes.wavesnodes.com/blocks/at/991512 reason:    Unexpected token < in JSON at position 0

at new WavesRequestError (/home/bc/bcnode/node_modules/waves-api/dist/waves-api.min.js:1:251106)
at handleError (/home/bc/bcnode/node_modules/waves-api/dist/waves-api.min.js:1:325772)
at /home/bc/bcnode/node_modules/waves-api/dist/waves-api.min.js:1:326092
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:182:7)

2018-05-08T06: 51:40.086Z ERROR	rover.wav.rover Rejected promise, trace:
WavesRequestError: Server request to 'https://nodes.wavesnodes.com/blocks/at/991529' has failed:

FetchError: request to https://nodes.wavesnodes.com/blocks/at/991529 failed, reason: read ECONNRESET

at new WavesRequestError (/home/bc/bcnode/node_modules/waves-api/dist/waves-api.min.js:1:251106)
at handleError (/home/bc/bcnode/node_modules/waves-api/dist/waves-api.min.js:1:325772)
at /home/bc/bcnode/node_modules/waves-api/dist/waves-api.min.js:1:326092
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:182:7)

Simon0x avatar May 08 '18 07:05 Simon0x