<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cherwell Fetch Incident fails in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/420931#M268</link>
    <description>&lt;P&gt;Hello Jason&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick and proper solution. Sadly it doesn't work on my side.&lt;/P&gt;&lt;P&gt;I still get the same error as above.&lt;/P&gt;&lt;P&gt;I've modified line 126, but didn't helped. The Check/Test of the new service was:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;SPAN&gt;Unexpected error: '&amp;lt;' not supported between instances of 'NoneType' and 'NoneType', traceback: Traceback (most recent call last): File "&amp;lt;string&amp;gt;", line 9133, in &amp;lt;module&amp;gt; File "&amp;lt;string&amp;gt;", line 8840, in test_command File "&amp;lt;string&amp;gt;", line 8629, in fetch_incidents File "&amp;lt;string&amp;gt;", line 8549, in get_all_incidents TypeError: '&amp;lt;' not supported between instances of 'NoneType' and 'NoneType' (85)&lt;/SPAN&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;First of all I've entered all the credentials we use to connect to Cherwell.&lt;/P&gt;&lt;P&gt;Without "Fetch incidents" and did a test: "Success"&lt;/P&gt;&lt;P&gt;Then I've enabled "Fetch Incidents" - Test - Error above in the spoiler.&lt;/P&gt;&lt;P&gt;If switch back to "Do not fetch" I do get a "Success" again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;roger&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jul 2021 06:02:40 GMT</pubDate>
    <dc:creator>r_buchwalder</dc:creator>
    <dc:date>2021-07-21T06:02:40Z</dc:date>
    <item>
      <title>Cherwell Fetch Incident fails</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/420706#M261</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use Demisto&amp;nbsp;Version 6.2.0, Build 1271082&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I configure a Cherwell Instance to fetch incident but It fails with the following Error:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;DIV class="modal-header ui huge label"&gt;&lt;DIV class="header-body ellipsis"&gt;&lt;SPAN class="modal-header-title ellipsis"&gt;&lt;SPAN&gt;Error Occurred&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="content"&gt;&lt;DIV&gt;&lt;SPAN class="oops-title"&gt;&lt;SPAN&gt;Failed to get samples from instance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class="oops-error"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Error details&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;PRE&gt;Script failed to run: 
Error: [Traceback (most recent call last):
   
   File "&amp;lt;string&amp;gt;", line 1017, in &amp;lt;module&amp;gt;
 Exception: '&amp;lt;' not supported between instances of 'NoneType' and 'NoneType'
] (2604) (2603)&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;This error pops up in the Cherwell Instance and in&amp;nbsp;Incidents Classification Editor&lt;/P&gt;&lt;P&gt;How do I solve it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;roger&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 13:49:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/420706#M261</guid>
      <dc:creator>r_buchwalder</dc:creator>
      <dc:date>2021-07-20T13:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cherwell Fetch Incident fails</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/420713#M262</link>
      <description>&lt;P&gt;Are you using Cherwell Onprem or Cloud?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 14:08:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/420713#M262</guid>
      <dc:creator>jgomes</dc:creator>
      <dc:date>2021-07-20T14:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cherwell Fetch Incident fails</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/420716#M263</link>
      <description>&lt;P&gt;We use onprem&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 14:18:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/420716#M263</guid>
      <dc:creator>r_buchwalder</dc:creator>
      <dc:date>2021-07-20T14:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cherwell Fetch Incident fails</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/420884#M267</link>
      <description>&lt;P&gt;As per our doc guide - we officially support and tested with the Cloud SaaS Version:&lt;/P&gt;&lt;P&gt;&lt;A href="https://xsoar.pan.dev/docs/reference/integrations/cherwell" target="_blank"&gt;https://xsoar.pan.dev/docs/reference/integrations/cherwell&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am aware that for on-prem Cherwell, Authentication fails. We came up with a local Integration patch.&lt;/P&gt;&lt;P&gt;Apart from that, everything else with the integration appears to work fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quick fix is you can clone the integration, and make the following changes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def request_new_access_token(using_refresh):
  #PATCH for on-premise
  url = BASE_URL + "token?auth_mode=Windows"
  #url = BASE_URL + "token"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vendor docs here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.cherwell.com/bundle/cherwell_rest_api_940_help_only/page/oxy_ex-1/content/system_administration/rest_api/csm_rest_oauth2_windows_ldap_entered_credentials_authentication.html#ObtainingApiClientIds" target="_blank"&gt;https://help.cherwell.com/bundle/cherwell_rest_api_940_help_only/page/oxy_ex-1/content/system_administration/rest_api/csm_rest_oauth2_windows_ldap_entered_credentials_authentication.html#ObtainingApiClientIds&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We already have internal GIT issue (32068) as feature enhancement for this.&lt;/P&gt;&lt;P&gt;Unfortunately, the customer with this issue didn't raise an AHA request to drive change / improvement to our OOTB content.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I recommend doing this here&amp;nbsp;&lt;A href="https://xsoar.ideas.aha.io/ideas/search?utf8=%E2%9C%93&amp;amp;query=Cherwell" target="_blank"&gt;https://xsoar.ideas.aha.io/ideas/search?utf8=%E2%9C%93&amp;amp;query=Cherwell&lt;/A&gt;&amp;nbsp;so other customers can upvote to support On-Premises Cherwell in our standard supported content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let us know if this works for you!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Jason&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 21:01:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/420884#M267</guid>
      <dc:creator>jgomes</dc:creator>
      <dc:date>2021-07-20T21:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cherwell Fetch Incident fails</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/420931#M268</link>
      <description>&lt;P&gt;Hello Jason&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick and proper solution. Sadly it doesn't work on my side.&lt;/P&gt;&lt;P&gt;I still get the same error as above.&lt;/P&gt;&lt;P&gt;I've modified line 126, but didn't helped. The Check/Test of the new service was:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;SPAN&gt;Unexpected error: '&amp;lt;' not supported between instances of 'NoneType' and 'NoneType', traceback: Traceback (most recent call last): File "&amp;lt;string&amp;gt;", line 9133, in &amp;lt;module&amp;gt; File "&amp;lt;string&amp;gt;", line 8840, in test_command File "&amp;lt;string&amp;gt;", line 8629, in fetch_incidents File "&amp;lt;string&amp;gt;", line 8549, in get_all_incidents TypeError: '&amp;lt;' not supported between instances of 'NoneType' and 'NoneType' (85)&lt;/SPAN&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;First of all I've entered all the credentials we use to connect to Cherwell.&lt;/P&gt;&lt;P&gt;Without "Fetch incidents" and did a test: "Success"&lt;/P&gt;&lt;P&gt;Then I've enabled "Fetch Incidents" - Test - Error above in the spoiler.&lt;/P&gt;&lt;P&gt;If switch back to "Do not fetch" I do get a "Success" again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;roger&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 06:02:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/420931#M268</guid>
      <dc:creator>r_buchwalder</dc:creator>
      <dc:date>2021-07-21T06:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cherwell Fetch Incident fails</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/421011#M270</link>
      <description>&lt;P&gt;From playground, run fetch and test module in debug mode. This may provide more clarity on what fetch and test failure is doing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;!&amp;lt;instance name&amp;gt;-fetch debug-mode=true 
!&amp;lt;instance name&amp;gt;-test-module debug-mode=true &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ref:&amp;nbsp;&lt;A href="https://xsoar.pan.dev/docs/reference/articles/troubleshooting-guide" target="_blank"&gt;https://xsoar.pan.dev/docs/reference/articles/troubleshooting-guide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also on 6.2 you can select debug mode in instance settings (drop list) which saves the debug log to disk in:&lt;BR /&gt;&lt;EM&gt;/var/log/demisto/&lt;SPAN class="s1"&gt;integration-instance.log&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class="s1"&gt;Also, you may want to check the API directly with POSTMAN or with basic REST Python script.&lt;BR /&gt;&lt;A href="https://help.cherwell.com/bundle/cherwell_rest_api_940_help_only/page/oxy_ex-1/content/system_administration/rest_api/csm_opening_swagger.html#OpenSwagger" target="_blank" rel="noopener"&gt;https://help.cherwell.com/bundle/cherwell_rest_api_940_help_only/page/oxy_ex-1/content/system_administration/rest_api/csm_opening_swagger.html#OpenSwagger&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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&amp;nbsp;&lt;EM&gt;?auth_mode=&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.cherwell.com/bundle/cherwell_rest_api_940_help_only/page/oxy_ex-1/content/system_administration/rest_api/csm_rest_about_authentication_modes.html" target="_blank" rel="noopener"&gt;https://help.cherwell.com/bundle/cherwell_rest_api_940_help_only/page/oxy_ex-1/content/system_administration/rest_api/csm_rest_about_authentication_modes.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 14:01:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/421011#M270</guid>
      <dc:creator>jgomes</dc:creator>
      <dc:date>2021-07-21T14:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cherwell Fetch Incident fails</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/421198#M272</link>
      <description>&lt;P&gt;Hello Jgomes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the output of the debug mode:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;LI-CODE lang="markup"&gt;2021-07-22 08:12:41.0349 debug Running &amp;lt;name&amp;gt;_instance_1_&amp;lt;name&amp;gt;_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 [&amp;lt;name&amp;gt;_instance_1_&amp;lt;name&amp;gt;_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 [&amp;lt;name&amp;gt;_instance_1_&amp;lt;name&amp;gt;_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 &amp;lt;name&amp;gt;_instance_1_&amp;lt;name&amp;gt;_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: &amp;lt;name&amp;gt;_instance_1_&amp;lt;name&amp;gt;_fetch-incidents with image: demisto/python3:3.8.3.8715 [error '
Error: [Traceback (most recent call last):

   File "&amp;lt;string&amp;gt;", line 1019, in &amp;lt;module&amp;gt;
 Exception: '&amp;lt;' 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 &amp;lt;name&amp;gt;_instance_1_&amp;lt;name&amp;gt;_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 [&amp;lt;name&amp;gt;_instance_1_&amp;lt;name&amp;gt;_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 [&amp;lt;name&amp;gt;_instance_1_&amp;lt;name&amp;gt;_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 &amp;lt;name&amp;gt;_instance_1_&amp;lt;name&amp;gt;_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: &amp;lt;name&amp;gt;_instance_1_&amp;lt;name&amp;gt;_fetch-incidents with image: demisto/python3:3.8.3.8715 [error '
Error: [Traceback (most recent call last):

   File "&amp;lt;string&amp;gt;", line 1019, in &amp;lt;module&amp;gt;
 Exception: '&amp;lt;' not supported between instances of 'NoneType' and 'NoneType'
] (2604)'] (source: /builds/gopath/src/github.com/demisto/server/services/automation/runner.go:68)&lt;/LI-CODE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;(I've replaced instance name with &amp;lt;name&amp;gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be precise: I'm able to request Cherwell through API, no problem. Only those fetch incident does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;roger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 06:24:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/421198#M272</guid>
      <dc:creator>r_buchwalder</dc:creator>
      <dc:date>2021-07-22T06:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cherwell Fetch Incident fails</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/421799#M275</link>
      <description>&lt;P&gt;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.&lt;BR /&gt;&lt;A href="https://xsoar.ideas.aha.io/ideas/search?utf8=%E2%9C%93&amp;amp;query=Cherwell" target="_blank" rel="nofollow noopener noreferrer"&gt;https://xsoar.ideas.aha.io/ideas/search?utf8=%E2%9C%93&amp;amp;query=Cherwell&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 20:39:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/421799#M275</guid>
      <dc:creator>jgomes</dc:creator>
      <dc:date>2021-07-23T20:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cherwell Fetch Incident fails</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/446214#M409</link>
      <description>&lt;P&gt;How did you go with your support ticket?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my posts have helped you resolve your issue, please kindly accept one of the solution answers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 17:16:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cherwell-fetch-incident-fails/m-p/446214#M409</guid>
      <dc:creator>jgomes</dc:creator>
      <dc:date>2021-11-08T17:16:00Z</dc:date>
    </item>
  </channel>
</rss>

