Synapse icon indicating copy to clipboard operation
Synapse copied to clipboard

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

Open ghost opened this issue 4 years ago • 3 comments

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 avatar Jul 21 '21 20:07 ghost

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 avatar Jul 22 '21 19:07 ghost

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!

ghost avatar Jul 26 '21 17:07 ghost

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?

forghani77 avatar Nov 14 '21 23:11 forghani77