Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'length' of undefined (lib/explorer.js:344) #246

Closed
poolerMF opened this issue Dec 4, 2018 · 1 comment

Comments

@poolerMF
Copy link

poolerMF commented Dec 4, 2018

trying to make CottonCoin explorer

lib/explorer.js:344
          module.exports.syncLoop(tx.vout.length, function (loop) {

TypeError: Cannot read property 'length' of undefined
    at lib/explorer.js:344:43
    at Request._callback (lib/explorer.js:114:14)
    at Request.self.callback (node_modules/request/request.js:187:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (node_modules/request
...

I solved id by replacing line 344:
from:
if (tx) {
to:
if (tx && tx.vout) {

is it OK ?

I also had problem #78, but solved it with #78 (comment)

@TheHolyRoger
Copy link
Collaborator

Duplicate of #56

@TheHolyRoger TheHolyRoger marked this as a duplicate of #56 Dec 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants