zkui
zkui copied to clipboard
Crash when trying to open node that contains binary data
I have a zookeeper cluster that have node contains binary data (protobuf encoded binary data), when I am trying to open node that contains binary data, zkui crashed with the following exception on the console:
Traceback (most recent call last): File "/home/hzzhangdongya/Work/zkui-1.1/WebWindow.py", line 221, in jsZkGet data = ret[0].decode('utf8') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xba in position 82: invalid start byte
Obviously, zkui was trying to show binary as plain text, decodeError occured during covertion. Maybe we should show binary data as HEX string.
The ideal solution would be switch into a hex-editor type view.