golismero / openvas_lib

OpenVAS connector for versions 6, 7, 8 and 9
BSD 3-Clause "New" or "Revised" License
80 stars 98 forks source link

scanner.get_results: TypeError: Expected string, got <type 'NoneType'> instead #18

Closed anandtiwarics closed 6 years ago

anandtiwarics commented 6 years ago

While getting result using get_results below error encounter.

Traceback (most recent call last): File "openvas.py", line 11, in openvas_results = scanner.get_results(SCAN_ID) File "C:\Python27\lib\site-packages\openvas_lib__init.py", line 728, in get_results m_response = self.manager.get_report_xml(self.__task_report_id) File "C:\Python27\lib\site-packages\openvas_lib\ompv4.py", line 589, in get_report_xml raise TypeError("Expected string, got %r instead" % type(report_id)) TypeError: Expected string, got <type 'NoneType'> instead

codenside commented 6 years ago

I am having the same problem