docker-mon icon indicating copy to clipboard operation
docker-mon copied to clipboard

tried to run it and ran into that issue:

Open gregory opened this issue 9 years ago • 9 comments

TypeError: Cannot read property 'rx_bytes' of undefined
    at NetworkIO.update (/usr/src/widgets/network.js:24:47)
    at /usr/src/index.js:217:45
    at Array.map (native)
    at /usr/src/index.js:217:22
    at Request.<anonymous> (/usr/src/utils/index.js:49:14)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:166:7)
    at IncomingMessage.<anonymous> (/usr/src/node_modules/request/request.js:1184:12)
    at emitOne (events.js:77:13)
    at IncomingMessage.emit (events.js:166:7)

gregory avatar Dec 11 '15 23:12 gregory

+1

jackkav avatar Dec 15 '15 08:12 jackkav

Same for me+

aholbreich avatar Jan 15 '16 20:01 aholbreich

+1

wziyong avatar Jan 20 '16 12:01 wziyong

For me also. +1

macint0sh avatar Jan 24 '16 21:01 macint0sh

Same here:

$ docker version
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:12:04 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:12:04 UTC 2015
 OS/Arch:      linux/amd64

referup-amontero avatar Feb 10 '16 12:02 referup-amontero

Yep, +1

git commit 75f4f25adb0a94080495c29a4418a6550bf365ae

Client: Version: 1.10.2 API version: 1.22 Go version: go1.5.3 Git commit: c3959b1 Built: Thu Feb 25 09:29:05 2016 OS/Arch: linux/amd64

Server: Version: 1.10.2 API version: 1.22 Go version: go1.5.3 Git commit: c3959b1 Built: Thu Feb 25 09:29:05 2016 OS/Arch: linux/amd64

tywkeene avatar Mar 11 '16 22:03 tywkeene

+1

petmakris avatar Mar 15 '16 15:03 petmakris

+1

Client: Version: 1.10.3 API version: 1.22 Go version: go1.5.3 Git commit: 20f81dd Built: Thu Mar 10 15:54:52 2016 OS/Arch: linux/amd64

Server: Version: 1.10.3 API version: 1.22 Go version: go1.5.3 Git commit: 20f81dd Built: Thu Mar 10 15:54:52 2016 OS/Arch: linux/amd64

sschimmel avatar Mar 24 '16 15:03 sschimmel

I managed to fix that locally changing statItem.network.rx_bytes here to statItem.networks.eth0.rx_bytes (same for following lines)

All I did was add console.log(statItem) before the breaking line, if networks.eth0 do not work for you try that.

vicentedealencar avatar Jul 11 '16 16:07 vicentedealencar