{"action":"created","issue":{"url":"https://api.github.com/repos/iquidus/explorer/issues/29","repository_url":"https://api.github.com/repos/iquidus/explorer","labels_url":"https://api.github.com/repos/iquidus/explorer/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/iquidus/explorer/issues/29/comments","events_url":"https://api.github.com/repos/iquidus/explorer/issues/29/events","html_url":"https://github.com/iquidus/explorer/issues/29","id":127283203,"number":29,"title":"\"Cannot read property 'length' of undefined\" error from scripts/sync.js","user":{"login":"kamronk","id":3845838,"avatar_url":"https://avatars1.githubusercontent.com/u/3845838?v=3","gravatar_id":"","url":"https://api.github.com/users/kamronk","html_url":"https://github.com/kamronk","followers_url":"https://api.github.com/users/kamronk/followers","following_url":"https://api.github.com/users/kamronk/following{/other_user}","gists_url":"https://api.github.com/users/kamronk/gists{/gist_id}","starred_url":"https://api.github.com/users/kamronk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamronk/subscriptions","organizations_url":"https://api.github.com/users/kamronk/orgs","repos_url":"https://api.github.com/users/kamronk/repos","events_url":"https://api.github.com/users/kamronk/events{/privacy}","received_events_url":"https://api.github.com/users/kamronk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-01-18T18:15:46Z","updated_at":"2017-06-20T15:32:56Z","closed_at":"2016-07-17T13:14:41Z","body":"Hello!\n\nI seem to be getting this error when trying to update the transaction db in mongo\n\nroot@ubuntu-512mb-nyc3-01:~/explorer# `node scripts/sync.js index update`\n\n```\nscript launched with pid: 14834\nerror on this? There was an error. Check your console.\n\nTypeError: Cannot read property 'length' of undefined\n    at /root/explorer/lib/database.js:629:36\n    at Request._callback (/root/explorer/lib/explorer.js:106:14)\n    at Request.self.callback (/root/explorer/node_modules/request/request.js:121:22)\n    at Request.EventEmitter.emit (events.js:98:17)\n    at Request.<anonymous> (/root/explorer/node_modules/request/request.js:985:14)\n    at Request.EventEmitter.emit (events.js:117:20)\n    at IncomingMessage.<anonymous> (/root/explorer/node_modules/request/request.js:936:12)\n    at IncomingMessage.EventEmitter.emit (events.js:117:20)\n    at _stream_readable.js:920:16\n    at process._tickCallback (node.js:415:13)\n```\n\nThis was found in the tmux screen I started npm in\n\n```\n> explorer@1.6.1 start /root/explorer\n> node --stack-size=10000 ./bin/cluster\n\nStarting cluster with pid: 14805\nGET /api/getblockcount 200 13ms - 6b\nGET /api/getconnectioncount 200 3ms - 1b\n{ [Error: Block number out of range.] code: -1 }\nGET /api/getblockhash?height=-8 200 4ms - 39b\n{ [Error: Block not found] code: -5 }\nGET /api/getblock?hash=There%20was%20an%20error.%20Check%20your%20console. 200 21ms - 39b\n```\n\nI've gone through other Closed issues here but am not able to find something relating to this error. Possibly does this mean all transactions have been synced? It was working for a bit prior to getting this error (or atleast it seemed to be working, printing lots to the console as far as tx's it was finding and syncing)\n\nPlease let me know if there is any other information I can provide here to be more helpful in getting some help \n\nAny/all help would be appreciated, Thank you! :)\n"},"comment":{"url":"https://api.github.com/repos/iquidus/explorer/issues/comments/309797352","html_url":"https://github.com/iquidus/explorer/issues/29#issuecomment-309797352","issue_url":"https://api.github.com/repos/iquidus/explorer/issues/29","id":309797352,"user":{"login":"kepoly","id":7433078,"avatar_url":"https://avatars2.githubusercontent.com/u/7433078?v=3","gravatar_id":"","url":"https://api.github.com/users/kepoly","html_url":"https://github.com/kepoly","followers_url":"https://api.github.com/users/kepoly/followers","following_url":"https://api.github.com/users/kepoly/following{/other_user}","gists_url":"https://api.github.com/users/kepoly/gists{/gist_id}","starred_url":"https://api.github.com/users/kepoly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kepoly/subscriptions","organizations_url":"https://api.github.com/users/kepoly/orgs","repos_url":"https://api.github.com/users/kepoly/repos","events_url":"https://api.github.com/users/kepoly/events{/privacy}","received_events_url":"https://api.github.com/users/kepoly/received_events","type":"User","site_admin":false},"created_at":"2017-06-20T15:32:56Z","updated_at":"2017-06-20T15:32:56Z","body":"@rixon Thanks, you made me double check and I forgot to add the external wallet server to rpcallowip.\r\nIndexing now."}}
{"actor":{"display_login":"kepoly"}}