Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running responder #2

Open
sohail-sankanur opened this issue Aug 3, 2020 · 3 comments
Open

Error while running responder #2

sohail-sankanur opened this issue Aug 3, 2020 · 3 comments

Comments

@sohail-sankanur
Copy link

sohail-sankanur commented Aug 3, 2020

Error while running Reporter responder.

While running the responder this is the error that is popping up. Tried to change multiple things in code but not able to obtain a fix. Any help?

Traceback (most recent call last): File "/opt/Cortex-Analyzers/responders/Reporter/reporter.py", line 253, in Reporter().run() File "/opt/Cortex-Analyzers/responders/Reporter/reporter.py", line 212, in run caseTaskLogEntries_sorted = sorted(caseTaskLogEntries, key=lambda k: k['createdAt']) File "/opt/Cortex-Analyzers/responders/Reporter/reporter.py", line 212, in caseTaskLogEntries_sorted = sorted(caseTaskLogEntries, key=lambda k: k['createdAt'])TypeError: string indices must be integers

@aacgood
Copy link
Owner

aacgood commented Aug 3, 2020

Hi @sohail-sankanur,

What version of TheHive, TheHive4Py, Cortex and Python are you using? Does the case you are running the reporter against contain any tasks?

its been a while since ive looked at that code, so ill have to see if I can reproduce it.

@sohail-sankanur
Copy link
Author

Hi @aacgood,

Thanks for the reply! :)

I am using Thehive4 - Version 4.0.0-1
Python3 - Version Python 3.5.3
Cortex Version 3.0.1-1
Elasticsearch for Cortex. Elasticsearch version 6.8.0
OS - CentOS Linux release 8.2.2004 (Core)

Cortex and Elasticsearch are running on Docker containers and Thehive is working on the OS.

I have multiple cases in which some of the cases have tasks in them and others do not have any tasks. Tried on all types of cases but it threw the same error.

Let me know if you would need more info. And thanks for the help!

Looking forward to hearing from you.

Warm Regards,

@viszsec
Copy link

viszsec commented Oct 13, 2020

I spoke to aacgood about this and i had issues as yours. It seems it is not compatible with thehive4 currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants