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 #215

Closed
QUAR-Network opened this issue Jul 23, 2018 · 3 comments
Closed

TypeError: Cannot read property 'length' of undefined #215

QUAR-Network opened this issue Jul 23, 2018 · 3 comments

Comments

@QUAR-Network
Copy link

QUAR-Network commented Jul 23, 2018

trying to run node scripts/sync.js index reindex and keep getting this does anyone know what it means

index cleared (reindex)
/root/explorer/lib/database.js:642
              lib.syncLoop(block.tx.length, function (subloop) {
                                   ^

TypeError: Cannot read property 'length' of undefined
    at /root/explorer/lib/database.js:642:36
    at Request._callback (/root/explorer/lib/explorer.js:107:14)
    at Request.self.callback (/root/explorer/node_modules/request/request.js:187:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/root/explorer/node_modules/request/request.js:1044:10)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (/root/explorer/node_modules/request/request.js:965:12)
    at emitNone (events.js:72:20)
    at IncomingMessage.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:905:12)
    at nextTickCallbackWith2Args (node.js:441:9)
    at process._tickCallback (node.js:355:17)



@MagnaCoinX
Copy link

Having the exact same issue.

@omurkaangokyar
Copy link

omurkaangokyar commented Sep 9, 2018

1-) Open your .conf file and add txindex=1,than stop coin and restart with -daemon.
2-) Open your explorer's settings.json file and find //wallet settings section. The port must be same with your coin's rpc port. The user and pass must be exactly the same with your .conf file rpcuser and rpcpassword.
3-) Stop explorer and start again.

@TheHolyRoger
Copy link
Collaborator

Dup of #56

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

4 participants