Cherwell Fetch Incident fails

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cherwell Fetch Incident fails

L3 Networker

Hello

 

We use Demisto Version 6.2.0, Build 1271082

 

If I configure a Cherwell Instance to fetch incident but It fails with the following Error:

Spoiler
Failed to get samples from instance
Error details
Script failed to run: 
Error: [Traceback (most recent call last):
   
   File "<string>", line 1017, in <module>
 Exception: '<' not supported between instances of 'NoneType' and 'NoneType'
] (2604) (2603)

This error pops up in the Cherwell Instance and in Incidents Classification Editor

How do I solve it?

 

thanks

roger

8 REPLIES 8

From playground, run fetch and test module in debug mode. This may provide more clarity on what fetch and test failure is doing:

 

 

!<instance name>-fetch debug-mode=true 
!<instance name>-test-module debug-mode=true 

 

ref: https://xsoar.pan.dev/docs/reference/articles/troubleshooting-guide

 

Also on 6.2 you can select debug mode in instance settings (drop list) which saves the debug log to disk in:
/var/log/demisto/integration-instance.log

Also, you may want to check the API directly with POSTMAN or with basic REST Python script.
https://help.cherwell.com/bundle/cherwell_rest_api_940_help_only/page/oxy_ex-1/content/system_admini...

 

I also assume your were using Windows auth for SSO. There also appears other options like LDAP, SAML, and 'internal' - depending on your on-premise setup. ie. for getting a token successfully appending ?auth_mode=

https://help.cherwell.com/bundle/cherwell_rest_api_940_help_only/page/oxy_ex-1/content/system_admini...

 

Hello Jgomes

 

Here the output of the debug mode:

 

Spoiler
2021-07-22 08:12:41.0349 debug Running <name>_instance_1_<name>_fetch-incidents. Timeout: 5m0s (source: /builds/gopath/src/github.com/demisto/server/services/automation/dockercoderunner.go:245)
2021-07-22 08:12:41.0351 debug Sending runner request for script [<name>_instance_1_<name>_fetch-incidents] (source: /builds/gopath/src/github.com/demisto/server/services/automation/dockercoderunner.go:292)
2021-07-22 08:12:41.0352 debug Waiting for runner request for unnested script [<name>_instance_1_<name>_fetch-incidents], with script timeout [5m0s] (source: /builds/gopath/src/github.com/demisto/server/services/automation/dockercoderunner.go:326)
2021-07-22 08:12:41.8051 debug Started docker code loop for <name>_instance_1_<name>_fetch-incidents (source: /builds/gopath/src/github.com/demisto/server/services/automation/dockercoderunner.go:685)
2021-07-22 08:12:51.8543 error Failed to run script: <name>_instance_1_<name>_fetch-incidents with image: demisto/python3:3.8.3.8715 [error '
Error: [Traceback (most recent call last):

   File "<string>", line 1019, in <module>
 Exception: '<' not supported between instances of 'NoneType' and 'NoneType'
] (2604)'] (source: /builds/gopath/src/github.com/demisto/server/services/automation/runner.go:68)
2021-07-22 08:13:41.0024 debug Running <name>_instance_1_<name>_fetch-incidents. Timeout: 5m0s (source: /builds/gopath/src/github.com/demisto/server/services/automation/dockercoderunner.go:245)
2021-07-22 08:13:41.0024 debug Sending runner request for script [<name>_instance_1_<name>_fetch-incidents] (source: /builds/gopath/src/github.com/demisto/server/services/automation/dockercoderunner.go:292)
2021-07-22 08:13:41.0024 debug Waiting for runner request for unnested script [<name>_instance_1_<name>_fetch-incidents], with script timeout [5m0s] (source: /builds/gopath/src/github.com/demisto/server/services/automation/dockercoderunner.go:326)
2021-07-22 08:13:41.7486 debug Started docker code loop for <name>_instance_1_<name>_fetch-incidents (source: /builds/gopath/src/github.com/demisto/server/services/automation/dockercoderunner.go:685)
2021-07-22 08:13:50.4965 error Failed to run script: <name>_instance_1_<name>_fetch-incidents with image: demisto/python3:3.8.3.8715 [error '
Error: [Traceback (most recent call last):

   File "<string>", line 1019, in <module>
 Exception: '<' not supported between instances of 'NoneType' and 'NoneType'
] (2604)'] (source: /builds/gopath/src/github.com/demisto/server/services/automation/runner.go:68)

(I've replaced instance name with <name>)

 

To be precise: I'm able to request Cherwell through API, no problem. Only those fetch incident does not work.

 

thanks

roger

 

Debug appear not very useful in this case. I would imagine this still has to do with being on-premise, and our content tested for Cloud Cherwell. Please raise a support ticket and/or raise AHA request for content enhancement - in order to support on-premises version of Cherwell as well. Best of luck going forward.
https://xsoar.ideas.aha.io/ideas/search?utf8=%E2%9C%93&query=Cherwell 

How did you go with your support ticket?

 

If my posts have helped you resolve your issue, please kindly accept one of the solution answers.

 

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!