Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

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

Open
rheinschiene opened this issue Oct 28, 2018 · 0 comments
Open

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

rheinschiene opened this issue Oct 28, 2018 · 0 comments

Comments

@rheinschiene
Copy link

rheinschiene commented Oct 28, 2018

I see a lot of the following error messages in my codiusd logfile:

Oct 26 16:29:12 codius1.ms86.de codiusd[21707]: Debug: internal, implementation, error
Oct 26 16:29:12 codius1.ms86.de codiusd[21707]: TypeError: Cannot read property 'length' of undefined
Oct 26 16:29:12 codius1.ms86.de codiusd[21707]: at Object.serverInfo (/usr/lib/node_modules/codiusd/src/util/serverInfo.js:12:52)
Oct 26 16:29:12 codius1.ms86.de codiusd[21707]: at infoHandler (/usr/lib/node_modules/codiusd/src/controllers/info.js:21:39)
Oct 26 16:29:12 codius1.ms86.de codiusd[21707]: at module.exports.internals.Manager.execute (/usr/lib/node_modules/codiusd/node_modules/hapi/lib/toolkit.js:35:106)
Oct 26 16:29:12 codius1.ms86.de codiusd[21707]: at Object.internals.handler (/usr/lib/node_modules/codiusd/node_modules/hapi/lib/handler.js:52:48)
Oct 26 16:29:12 codius1.ms86.de codiusd[21707]: at exports.execute (/usr/lib/node_modules/codiusd/node_modules/hapi/lib/handler.js:37:36)
Oct 26 16:29:12 codius1.ms86.de codiusd[21707]: at Request._lifecycle (/usr/lib/node_modules/codiusd/node_modules/hapi/lib/request.js:262:62)
Oct 26 16:29:12 codius1.ms86.de codiusd[21707]: at process._tickCallback (internal/process/next_tick.js:68:7)

I've restarted codiusd at Oct 25 13:19:35 and till Oct 26 16:32:06 there were 415 of these error messages. I've been observing this behavior for some time now. After a restart, everything works fine, but after 1-2 hours (sometimes it takes longer), I get these errors.

When /info is called, an Internal Server Error (500) is thrown.

access.log

70.231.56.209 - - [25/Oct/2018:17:19:37 +0200] "GET /info HTTP/1.1" 500 96 "-" "-" "-"
18.220.239.19 - - [25/Oct/2018:17:20:04 +0200] "GET /info HTTP/1.1" 500 96 "-" "-" "-"
70.231.56.209 - - [25/Oct/2018:17:20:24 +0200] "GET /info HTTP/1.1" 500 96 "-" "-" "-"
88.198.59.202 - - [25/Oct/2018:17:22:21 +0200] "GET /info HTTP/1.1" 500 96 "-" "axios/0.18.0" "-"
18.220.239.19 - - [25/Oct/2018:17:23:01 +0200] "GET /info HTTP/1.1" 500 96 "-" "-" "-"
35.237.122.18 - - [25/Oct/2018:17:23:26 +0200] "GET /info HTTP/1.1" 500 96 "-" "axios/0.18.0" "-"
70.231.56.209 - - [25/Oct/2018:17:25:17 +0200] "GET /info HTTP/1.1" 500 96 "-" "-" "-"
18.220.239.19 - - [25/Oct/2018:17:28:06 +0200] "GET /info HTTP/1.1" 500 96 "-" "-" "-"
18.220.239.19 - - [25/Oct/2018:17:29:10 +0200] "GET /info HTTP/1.1" 500 96 "-" "-" "-"

codiusd log

Oct 25 17:19:37 codius1.ms86.de codiusd[1127]: TypeError: Cannot read property 'length' of undefined
Oct 25 17:20:04 codius1.ms86.de codiusd[1127]: TypeError: Cannot read property 'length' of undefined
Oct 25 17:20:24 codius1.ms86.de codiusd[1127]: TypeError: Cannot read property 'length' of undefined
Oct 25 17:22:21 codius1.ms86.de codiusd[1127]: TypeError: Cannot read property 'length' of undefined
Oct 25 17:23:01 codius1.ms86.de codiusd[1127]: TypeError: Cannot read property 'length' of undefined
Oct 25 17:23:26 codius1.ms86.de codiusd[1127]: TypeError: Cannot read property 'length' of undefined
Oct 25 17:25:17 codius1.ms86.de codiusd[1127]: TypeError: Cannot read property 'length' of undefined
Oct 25 17:28:06 codius1.ms86.de codiusd[1127]: TypeError: Cannot read property 'length' of undefined
Oct 25 17:29:10 codius1.ms86.de codiusd[1127]: TypeError: Cannot read property 'length' of undefined

After a restart everything works fine again.

codiusd@1.2.5
moneyd-uplink-xrp@1.3.3
hyperd 1.1.0-1.el7
nginx 1.12.2-2.el7

Running on a physical maschine with no other applications. There are no codius contracts running and the system is 99% idle.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant