any idea about this error ?
first, to all thanks for your great app I have tried to run this but I face this error.
javedali@Javeds-MacBook-Pro WeChartWeb3-master % npm run scraper
[email protected] scraper /Users/javedali/Documents/WeChartWeb3-master node ./workers/updater/master.js
[LAST SCRAPED]
MongoDB connected
MongoDB connected
[NO TOPICS] false
(node:35002) UnhandledPromiseRejectionWarning: Error: cannot convert null value to array
at toByteArray (/Users/javedali/Documents/WeChartWeb3-master/workers/lib/bloomfilter.js:41:15)
at keccak256 (/Users/javedali/Documents/WeChartWeb3-master/workers/lib/bloomfilter.js:10:35)
at setInBloom (/Users/javedali/Documents/WeChartWeb3-master/workers/lib/bloomfilter.js:132:18)
at BlockInfo.addLog (/Users/javedali/Documents/WeChartWeb3-master/workers/lib/block.listner.js:27:27)
at BlockListener._processLog (/Users/javedali/Documents/WeChartWeb3-master/workers/lib/block.listner.js:108:19)
at Timeout._onTimeout (/Users/javedali/Documents/WeChartWeb3-master/node_modules/web3-core-subscriptions/lib/subscription.js:257:23)
at listOnTimeout (internal/timers.js:557:17)
at processTimers (internal/timers.js:500:7)
(Use node --trace-warnings ... to show where the warning was created)
(node:35002) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:35002) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:35002) UnhandledPromiseRejectionWarning: Error: Returned error: invalid argument 0: hex string without 0x prefix
at Object.ErrorResponse (/Users/javedali/Documents/WeChartWeb3-master/node_modules/web3-core-helpers/lib/errors.js:28:19)
at /Users/javedali/Documents/WeChartWeb3-master/node_modules/web3-core-requestmanager/lib/index.js:302:36
at XMLHttpRequest.request.onreadystatechange (/Users/javedali/Documents/WeChartWeb3-master/node_modules/web3-providers-http/lib/index.js:98:13)
at XMLHttpRequestEventTarget.dispatchEvent (/Users/javedali/Documents/WeChartWeb3-master/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (/Users/javedali/Documents/WeChartWeb3-master/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (/Users/javedali/Documents/WeChartWeb3-master/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
at IncomingMessage.--unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
MAIN_PRICE: 248.33250196119187
MAIN_PRICE: 248.33250196119187