wallet icon indicating copy to clipboard operation
wallet copied to clipboard

UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined

Open Cleberw3b opened this issue 4 years ago • 0 comments

This is a (Bug Report / Feature Proposal)

:tophat: Bug Description

  • What went wrong? While syncing blockchain information UnhandledPromiseRejectionWarning was thrown

  • What did you expect should have happened? Application runs smoothly

  • What was the config you used?

  "web3": {
      "config": "mainnet",
      "network": "https://mainnet.infura.io/v3/${my_API_key}",
      "secret": "",
      "id": ""
  }
  • What stacktrace or error message from your provider did you see? see bellow

:clipboard: Additional Data

  • Sovereign deployment where you found the issue: In Master branch

  • Browser & version: Chrome Version 79.0.3945.130 (Official Build) (64-bit)

  • Error messages: Exception while invoking method 'getBlock' TypeError: Cannot read property 'getTime' of undefined UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined

I20200122-09:57:29.944(-3)? [web3] Parsing event index: 841
I20200122-09:57:29.944(-3)? [web3] Getting data for block: 9328968
I20200122-09:57:30.219(-3)? [web3] Event timestamp found: Wed Jan 22 2020 00:36:33 GMT-0300 (-03)
I20200122-09:57:30.222(-3)? [web3] Migrating address 0x74d5e6D53FcB220A195BFBDB2Ae04607454Eb81B...
I20200122-09:57:30.224(-3)? [web3] Updated user with new settings.. 0x74d5e6d53fcb220a195bfbdb2ae04607454eb81b
I20200122-09:57:30.270(-3)? [web3] Mirroring blockchain event as transaction action with index: 111...
I20200122-09:57:30.308(-3)? [web3] Tallying vote of user 0x74d5e6d53fcb220a195bfbdb2ae04607454eb81b...
I20200122-09:57:30.319(-3)? [web3] Inserting new transaction...
I20200122-09:57:30.483(-3)? [web3] Updating tally in poll choice id: xCf4LcWBkehWWLzb9
I20200122-09:57:30.594(-3)? [web3] Updated collective with lastEventBlockTimestamp Wed Dec 31 1969 21:00:00 GMT-0300 (-03) and lastSyncedBlock: 9328968
I20200122-09:57:30.603(-3)? [dao] Computing statistics for Democracy Earth...
W20200122-09:57:30.618(-3)? (STDERR) (node:18616) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined
W20200122-09:57:30.619(-3)? (STDERR)     at _computeDAOStats (lib/dao.js:114:53)
W20200122-09:57:30.619(-3)? (STDERR)     at Promise.asyncApply (lib/web3.js:954:9)
W20200122-09:57:30.619(-3)? (STDERR)     at /Users/cleberw3b/.meteor/packages/promise/.0.11.2.1ixw4hn.8uhlk++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40
W20200122-09:57:30.619(-3)? (STDERR)  => awaited here:
W20200122-09:57:30.619(-3)? (STDERR)     at Function.Promise.await (/Users/cleberw3b/.meteor/packages/promise/.0.11.2.1ixw4hn.8uhlk++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/promise_server.js:56:12)
W20200122-09:57:30.619(-3)? (STDERR)     at Promise.asyncApply (lib/dao.js:156:13)
W20200122-09:57:30.624(-3)? (STDERR)     at /Users/cleberw3b/.meteor/packages/promise/.0.11.2.1ixw4hn.8uhlk++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40
W20200122-09:57:30.624(-3)? (STDERR)  => awaited here:
W20200122-09:57:30.624(-3)? (STDERR)     at Function.Promise.await (/Users/cleberw3b/.meteor/packages/promise/.0.11.2.1ixw4hn.8uhlk++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/promise_server.js:56:12)
W20200122-09:57:30.625(-3)? (STDERR)     at Promise.asyncApply (lib/dao.js:171:7)
W20200122-09:57:30.625(-3)? (STDERR)     at /Users/cleberw3b/.meteor/packages/promise/.0.11.2.1ixw4hn.8uhlk++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40
W20200122-09:57:30.625(-3)? (STDERR)  => awaited here:
W20200122-09:57:30.625(-3)? (STDERR)     at Function.Promise.await (/Users/cleberw3b/.meteor/packages/promise/.0.11.2.1ixw4hn.8uhlk++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/promise_server.js:56:12)
W20200122-09:57:30.625(-3)? (STDERR)     at Promise.asyncApply (lib/dao.js:169:3)
W20200122-09:57:30.626(-3)? (STDERR)     at /Users/cleberw3b/.meteor/packages/promise/.0.11.2.1ixw4hn.8uhlk++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40
W20200122-09:57:30.626(-3)? (STDERR)  => awaited here:
W20200122-09:57:30.626(-3)? (STDERR)     at Function.Promise.await (/Users/cleberw3b/.meteor/packages/promise/.0.11.2.1ixw4hn.8uhlk++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/promise_server.js:56:12)
W20200122-09:57:30.626(-3)? (STDERR)     at Promise.asyncApply (lib/dao.js:179:3)
W20200122-09:57:30.665(-3)? (STDERR)     at /Users/cleberw3b/.meteor/packages/promise/.0.11.2.1ixw4hn.8uhlk++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40
W20200122-09:57:30.665(-3)? (STDERR) (node:18616) 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(). (rejection id: 3)
W20200122-09:57:30.666(-3)? (STDERR) (node:18616) [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.
I20200122-09:58:36.902(-3)? Exception while invoking method 'getBlock' TypeError: Cannot read property 'getTime' of undefined
I20200122-09:58:36.903(-3)?     at Promise.asyncApply (imports/api/server/methods.js:420:75)
I20200122-09:58:36.903(-3)?     at /Users/cleberw3b/.meteor/packages/promise/.0.11.2.1ixw4hn.8uhlk++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40

Cleberw3b avatar Jan 22 '20 13:01 Cleberw3b