We’re trying to utilize the scripting features from the InsightVM GitHub repo. We’re running into errors and I was curious if anyone was able to work around these or if they reached out to Rapid7 for assistance.
I’m using the sample “assets.py” file in the repo.
Rapid7 VM Console Python Stuff
Traceback (most recent call last):
File "c:/Users/uid/Documents/Scripts/Rapid7/poam.py", line 38, in <module>
assets = asset_api.get_assets()
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api\asset_api.py", line 2081, in get_assets
(data) = self.get_assets_with_http_info(**kwargs) # noqa: E501
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api\asset_api.py", line 2148, in get_assets_with_http_info
return self.api_client.call_api(
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 315, in call_api
return self.__call_api(resource_path, method,
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 159, in __call_api
return_data = self.deserialize(response_data, response_type)
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 231, in deserialize
return self.__deserialize(data, response_type)
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 270, in __deserialize
return self.__deserialize_model(data, klass)
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 611, in __deserialize_model
kwargs[attr] = self.__deserialize(value, attr_type)
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 247, in __deserialize
return [self.__deserialize(sub_data, sub_kls)
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 247, in <listcomp>
return [self.__deserialize(sub_data, sub_kls)
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 270, in __deserialize
return self.__deserialize_model(data, klass)
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 611, in __deserialize_model
kwargs[attr] = self.__deserialize(value, attr_type)
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 247, in __deserialize
return [self.__deserialize(sub_data, sub_kls)
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 247, in <listcomp>
return [self.__deserialize(sub_data, sub_kls)
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 270, in __deserialize
return self.__deserialize_model(data, klass)
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 611, in __deserialize_model
kwargs[attr] = self.__deserialize(value, attr_type)
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 247, in __deserialize
return [self.__deserialize(sub_data, sub_kls)
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 247, in <listcomp>
return [self.__deserialize(sub_data, sub_kls)
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 270, in __deserialize
return self.__deserialize_model(data, klass)
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\api_client.py", line 613, in __deserialize_model
instance = klass(**kwargs)
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\models\configuration.py", line 48, in __init__
self.name = name
File "C:\Users\uid\AppData\Local\Programs\Python\Python38-32\lib\site-packages\rapid7vmconsole\models\configuration.py", line 73, in name
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
ValueError: Invalid value for `name`, must not be `None`