Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json output parsing error #4

Open
inittabr opened this issue Nov 11, 2020 · 4 comments
Open

json output parsing error #4

inittabr opened this issue Nov 11, 2020 · 4 comments

Comments

@inittabr
Copy link

gstatus --version
gstatus 1.0.4
gstatus output result - correct.
When run gstatus_discovery.py - JSONDecodeError.
./gstatus_discovery.py
Traceback (most recent call last):
File "./gstatus_discovery.py", line 9, in
gluster_info = json.loads(json_part)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 342, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 2 (char 1)

@gpavinteractiv
Copy link

gstatus from 1.0.x changed somewhat since previous releases. it's now based on pyhton3 et output format is different as far as I remember.

@thetuxinator
Copy link

Any fix for this? https://stackoverflow.com/questions/48140858/json-decoder-jsondecodeerror-extra-data-line-2-column-1-char-190 sounds explanatory, however i am no python men, so can't fix it myself.

@thetuxinator
Copy link

looks like https://github.com/fabricat/zabbix-glusterfs fixed it on his fork

@thetuxinator
Copy link

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

No branches or pull requests

3 participants