dockers
dockers copied to clipboard
Issue with attachments - TypeError: expected str, bytes or os.PathLike object, not list
Hello,
I am experiencing an issue with the attachment import feature. Output of imap2thehive.py is below. It looks like thehive4py is looking for a different object type for the attachment file. Any ideas?
[WARNING]: Both case template and tasks are defined. Template (thehive_template) will be used.
[INFO]: Processing REDACTEDEMAIL
[INFO]: Connected to IMAP server.
[INFO]: 1 unread messages to process
[INFO]: From: REDACTEDEMAIL Subject: er
[INFO]: Found attachment: file.docx (application/vnd.openxmlformats-officedocument.wordprocessingml.document)
[DEBUG]: Searching for \S*(ALERT|VTMIS)\S* in 'er'
[INFO]: Created case 38
Traceback (most recent call last):
File "./imap2thehive.py", line 557, in
Around line 360 : Change : data = [path], -> data = path,