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

Curl {"success":false} -- ValueError: unknown use case after searching case by description #70

Open
ghost opened this issue Jul 21, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 21, 2021

Hello,

I am stuck at trying to initiate curl to create the case, I check the logs and it provides me with

Traceback (most recent call last):
File "/opt/Synapse/workflows/Ews2Case.py", line 38, in connectEws
esCaseId = theHiveConnector.searchCaseByDescription(conversationId)
File "/opt/Synapse/workflows/objects/TheHiveConnector.py", line 57, in searchCaseByDescription
raise ValueError('unknown use case after searching case by description')
ValueError: unknown use case after searching case by description

Not sure where to go from here? Any help would be appreciated. I will also attach my screenshot of the log:

image

@ghost
Copy link
Author

ghost commented Jul 22, 2021

Update
I tried the curl cmd on a server rather than my workstation, it said Success:True but never created a case, I looked in the logs and didn't find much, I tried again and now it said false again and won't work again. So not sure what is going on...

@ghost
Copy link
Author

ghost commented Jul 26, 2021

I've gotten the curl command to say Success:True every time now, but it still returns the error line 38 and line 57 where it states raise ValueError ('unknown use case after searching case by description')

Any help or advice would be great. Thanks!

@forghani77
Copy link

forghani77 commented Nov 14, 2021

I have this issue too.
in TheHiveConnector.py file , line 38 it queries TheHive to check if there is an existing case with the passed query or not.
response = self.theHiveApi.find_cases(query=query, range=range, sort=sort)
I added print(len(response.json())) and it returned number of all of my cases in TheHive.
so thehive4py is broken?

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

1 participant