Active IQ Unified Manager Discussions

No JSON object could be decode error


Hi all,


I'm new to python.


I have the following issue while accessing utility class using "requests" library to call OnCommand Insight REST API.


This is issue im facing..


Traceback (most recent call last):
File "", line 22, in <module>
example(options.url, options.user, options.password)

File "", line 7, in example
with OciRest(url, user, password) as oci:
File "C:\Users\Administrator\Desktop\Python\", line 51, in __init__

self.validate_version(version, r)
File "C:\Users\Administrator\Desktop\Python\", line 67, in validate
server_version = response.json()['apiVersion']
File "C:\Python27\lib\site-packages\requests\", line 799, in json
return json.loads(self.text, **kwargs)
File "C:\Python27\lib\json\", line 310, in loads
return _default_decoder.decode(s)
File "C:\Python27\lib\json\", line 346, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Python27\lib\json\", line 364, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded


Please help me...








Earn Rewards for Your Review!
GPI Review Banner
All Community Forums