VirusTotal / vt-py

The official Python 3 client library for VirusTotal
https://virustotal.github.io/vt-py/
Apache License 2.0
547 stars 127 forks source link

Task was destroyed but it is pending! #106

Closed mlawpantme closed 2 years ago

mlawpantme commented 2 years ago

I'm running "python3 search_and_download_topn_files.py -n 5 'type:"peexe"' --apikey 1234" and the following error is returned.

2022-08-17 10:26:03 INFO Starting VirusTotal Intelligence downloader 2022-08-17 10:26:03 INFO VirusTotal Intelligence search: type:"peexe" 2022-08-17 10:26:03 INFO Number of files to download: 5 2022-08-17 10:26:06 ERROR Task was destroyed but it is pending! task: <Task pending name='Task-3' coro=<DownloadTopNFilesHandler.download_files() running at search_and_download_topn_files.py:55>> 2022-08-17 10:26:06 ERROR Task was destroyed but it is pending! task: <Task pending name='Task-4' coro=<DownloadTopNFilesHandler.download_files() running at search_and_download_topn_files.py:55>> 2022-08-17 10:26:06 ERROR Task was destroyed but it is pending! task: <Task pending name='Task-5' coro=<DownloadTopNFilesHandler.download_files() running at search_and_download_topn_files.py:55>> 2022-08-17 10:26:06 ERROR Task was destroyed but it is pending! task: <Task pending name='Task-6' coro=<DownloadTopNFilesHandler.download_files() running at search_and_download_topn_files.py:55>>

mgmacias95 commented 2 years ago

Hello @mlawpantme,

Thank you for reporting this issue. A fix is available at https://github.com/VirusTotal/vt-py/pull/107.

Regards, Marta

mgmacias95 commented 2 years ago

Fixed at #108