astefanutti / kubebox

⎈❏ Terminal and Web console for Kubernetes
http://astefanutti.github.io/kubebox
MIT License
2.15k stars 142 forks source link

kubebox crashes on pending containers #12

Closed galan closed 5 years ago

galan commented 6 years ago

Pressing enter on a pending pod will exit kubebox with the following stacktrace:

TypeError: Cannot read property 'slice' of undefined
    at updateStatsFromCAdvisor (/kubebox/client.js:3679:151)
    at ListTable.Dashboard.pods_table.on (/kubebox/client.js:3617:21)
    at ListTable.EventEmitter._emit (/kubebox/client.js:6029:20)
    at ListTable.EventEmitter.emit (/kubebox/client.js:6052:12)
    at ListTable.List.enterSelected (/kubebox/client.js:19641:8)
    at ListTable.<anonymous> (/kubebox/client.js:19174:14)
    at ListTable.EventEmitter._emit (/kubebox/client.js:6029:20)
    at ListTable.EventEmitter.emit (/kubebox/client.js:6052:12)
    at Program.<anonymous> (/kubebox/client.js:22728:15)
    at Program.emit (events.js:160:13)
pod default/kubebox terminated (Error)
astefanutti commented 6 years ago

Ah that's a bug that I want to fix for a long time! Kubebox tries to fetch resources usage stats.

Thanks for the report. Will fix it ASAP.

astefanutti commented 5 years ago

Fixed with 412aa404cb9dc9a0719b8b65cbb56d78d30bfb4d.