Active IQ Unified Manager Discussions

No JSON object could be decode error

sasikant

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..

 


C:\Users\Administrator\Desktop\Python>python basic.py
Traceback (most recent call last):
File "basic.py", line 22, in <module>
example(options.url, options.user, options.password)


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

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

 

Please help me...

 

 

Regards

sasi

 

 

 

0 REPLIES 0
Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public