Skip to content

download_exported_scan error #5

@lengoldenstein

Description

@lengoldenstein

Hi, when using the download_exported_scan module to download a .csv or .pdf file created through the export_scan api, i get the following errors:

pdf file:
msg: 'An unexpected error occurred: ''utf-8'' codec can''t decode byte 0xaa in position 10: invalid start byte'

csv file:
msg: 'An unexpected error occurred: Expecting value: line 1 column 1 (char 0)'

Very simple usage:
- name: 'tenable download_exported_scan'
valkiriaaquatica.tenable.download_exported_scan:
access_key: '{{ access_key }}'
secret_key: '{{ secret_key }}'
scan_id: '{{ scan_id }}'
file_id: '{{ file_id }}'
download_path: '/tmp/download1.csv'
tags:
- 'download_exported_scan'

ansible-core 2.16.14
python 3.10.12

Unsure if this is an issue with the module or something with my local environment. Great modules, very helpful!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions