Skip to content

Error JSON Code #31

@augustoferronato

Description

@augustoferronato

When run in debug mode, this error is displayed

Traceback (most recent call last):
File "./zbxtg.py", line 398, in
main()
File "./zbxtg.py", line 295, in main
print_message(tg.get_me())
File "./zbxtg.py", line 35, in get_me
me = self.http_get(url)
File "./zbxtg.py", line 21, in http_get
answer_json = json.loads(answer)
File "/usr/lib64/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

According the google, can be the encoding from JSON, using Zabbix 3.0.1

Python 2.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions