<?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: Unable to send Slack block messages in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/unable-to-send-slack-block-messages/m-p/587188#M3317</link>
    <description>&lt;P&gt;Yeah, I discovered shortly after creating this thread that you must test this on an existing incident rather than using the debugger panel. They didn't really make this clear in the documentation. Ended up wasting hours trying to find the cause. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1595820665"&gt;@KHassan&lt;/a&gt;, you can test it on any kind of incident. Just create a playbook with the SlackBlockBuilder task in it, then open an incident and change the playbook in the Work Plan tab.&lt;/P&gt;</description>
    <pubDate>Sat, 18 May 2024 11:58:46 GMT</pubDate>
    <dc:creator>IDarma</dc:creator>
    <dc:date>2024-05-18T11:58:46Z</dc:date>
    <item>
      <title>Unable to send Slack block messages</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/unable-to-send-slack-block-messages/m-p/580900#M3161</link>
      <description>&lt;P&gt;I've been trying to send a block message from the SlackBlockBuilder automation. However, when I try to test it out via the debugger panel, it would result in an error.&lt;/P&gt;
&lt;DIV class="row entry-parent"&gt;
&lt;DIV class="floated left aligned sixteen wide mobile six wide tablet sixteen wide computer column"&gt;
&lt;DIV class="entry-metadata"&gt;
&lt;DIV class="entry-task-command"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;LI-SPOILER&gt;
&lt;DIV class="row entry-parent"&gt;
&lt;DIV class="floated left aligned sixteen wide mobile six wide tablet sixteen wide computer column"&gt;
&lt;DIV class="entry-metadata"&gt;
&lt;DIV class="entry-task-command"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Command:&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;
&lt;DIV class="display-parent-entry"&gt;&lt;SPAN class="parent-entry-label ellipsis" title="!SlackBlockBuilder list_name=&amp;quot;SLACKV3_BLOCK_ASK_URLALERT&amp;quot; channel_id=&amp;quot;C06KEU22PMH&amp;quot; persistent=&amp;quot;false&amp;quot; reply=&amp;quot;Thank you for your response.&amp;quot; lifetime=&amp;quot;1 day&amp;quot; defaultResponse=&amp;quot;NoResponse&amp;quot; slackInstance=&amp;quot;SlackV3_instance_yogasmara&amp;quot;"&gt;!SlackBlockBuilder list_name="SLACKV3_BLOCK_ASK_URLALERT" channel_id="[redacted]" persistent="false" reply="Thank you for your response." lifetime="1 day" defaultResponse="NoResponse" slackInstance="SlackV3_instance_test"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="entry-view vertical-strech entry-error"&gt;
&lt;DIV class="vertical-strech demisto-data"&gt;
&lt;DIV&gt;&lt;SPAN class="entry-task-reason"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Reason&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;
&lt;DIV class="entry-note-view" data-test-id="entry-note-text"&gt;
&lt;DIV&gt;
&lt;DIV class="entry-text-view"&gt;&lt;SPAN class=""&gt;Error from Scripts is : Script failed to run: Timeout Error: Docker code script failed due to timeout, consider changing timeout value for this automation, Error: write |1: file already closed (2604) (2603)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI-SPOILER&gt;
&lt;DIV class="entry-view vertical-strech entry-error"&gt;
&lt;DIV class="vertical-strech demisto-data"&gt;
&lt;DIV class="entry-note-view" data-test-id="entry-note-text"&gt;
&lt;DIV class="entry-text-view"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Similar error happens with SlackV3's send-notification command when you use its blocks parameter:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class="row entry-parent"&gt;
&lt;DIV class="floated left aligned sixteen wide mobile six wide tablet sixteen wide computer column"&gt;
&lt;DIV class="entry-metadata"&gt;
&lt;DIV class="entry-task-command"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;LI-SPOILER&gt;
&lt;DIV class="row entry-parent"&gt;
&lt;DIV class="floated left aligned sixteen wide mobile six wide tablet sixteen wide computer column"&gt;
&lt;DIV class="entry-metadata"&gt;
&lt;DIV class="entry-task-command"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Command:&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;
&lt;DIV class="display-parent-entry"&gt;&lt;SPAN class="parent-entry-label ellipsis" title="!send-notification message=&amp;quot;This is a test (normal send-notification command)&amp;quot; channel=&amp;quot;xsoar-test&amp;quot; channel_id=&amp;quot;C06KEU22PMH&amp;quot; ignoreAddURL=&amp;quot;false&amp;quot; blocks=&amp;quot;{
 \&amp;quot;blocks\&amp;quot;: [
  {
   \&amp;quot;type\&amp;quot;: \&amp;quot;header\&amp;quot;,
"&gt;!send-notification message="This is a test (send-notification command)" channel_id="[redacted]" ignoreAddURL="false" blocks="{ \"blocks\": [ { \"type\": \"header\",&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="entry-view vertical-strech entry-error"&gt;
&lt;DIV class="vertical-strech demisto-data"&gt;
&lt;DIV&gt;&lt;SPAN class="entry-task-reason"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Reason&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;
&lt;DIV class="entry-note-view" data-test-id="entry-note-text"&gt;
&lt;DIV&gt;
&lt;DIV class="entry-text-view"&gt;&lt;SPAN class=""&gt;Error from SlackV3 is : Script failed to run: Timeout Error: Docker code script failed due to timeout, consider changing timeout value for this automation, Error: Failed to decode (loop) data from docker code script: unexpected EOF This may happen when you don't return an explicit entry (or entries) from a script. for entry structure please review the 'Script Helper' (2605) (2604) (2603)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI-SPOILER&gt;
&lt;DIV class="entry-view vertical-strech entry-error"&gt;
&lt;DIV class="vertical-strech demisto-data"&gt;
&lt;DIV class="entry-note-view" data-test-id="entry-note-text"&gt;
&lt;DIV class="entry-text-view"&gt;&lt;BR /&gt;The command works fine without the block parameter, though:&lt;BR /&gt;
&lt;DIV class="row entry-parent"&gt;
&lt;DIV class="floated left aligned sixteen wide mobile six wide tablet sixteen wide computer column"&gt;
&lt;DIV class="entry-metadata"&gt;
&lt;DIV class="entry-task-command"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;LI-SPOILER&gt;
&lt;DIV class="row entry-parent"&gt;
&lt;DIV class="floated left aligned sixteen wide mobile six wide tablet sixteen wide computer column"&gt;
&lt;DIV class="entry-metadata"&gt;
&lt;DIV class="entry-task-command"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Command:&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;
&lt;DIV class="display-parent-entry"&gt;&lt;SPAN class="parent-entry-label ellipsis" title="!send-notification message=&amp;quot;This is a test (normal send-notification command)&amp;quot; channel=&amp;quot;xsoar-test&amp;quot; channel_id=&amp;quot;C06KEU22PMH&amp;quot; ignoreAddURL=&amp;quot;false&amp;quot; (SlackV3[SlackV3_instance_yogasmara])"&gt;!send-notification message="This is a test (send-notification command)" channel_id="[redacted]" ignoreAddURL="false"&lt;/SPAN&gt;&lt;SPAN class="parent-entry-source ellipsis" title="SlackV3_instance_yogasmara"&gt;(SlackV3)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="entry-view vertical-strech"&gt;
&lt;DIV class="vertical-strech demisto-data"&gt;
&lt;DIV&gt;
&lt;DIV class="entry-note-view" data-test-id="entry-note-markdown"&gt;
&lt;DIV&gt;
&lt;DIV class="entry-markdown-view"&gt;
&lt;DIV class="preplacer"&gt;Message sent to Slack successfully. Thread ID is: [redacted]&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI-SPOILER&gt;
&lt;DIV class="entry-view vertical-strech"&gt;
&lt;DIV class="vertical-strech demisto-data"&gt;
&lt;DIV&gt;
&lt;DIV class="entry-note-view" data-test-id="entry-note-markdown"&gt;
&lt;DIV&gt;
&lt;DIV class="entry-markdown-view"&gt;
&lt;DIV class="preplacer"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
For what it's worth, I tried debugging this on my VM and inspected the instance's log there. It said something along the lines of "cached context has expired." Screenshot of the log is attached.&lt;BR /&gt;
&lt;DIV id="tinyMceEditorIDarma_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;BR /&gt;Could anyone assist me with this issue? Thanks!&lt;BR /&gt;&lt;LI-PRODUCT title="Cortex XSOAR" id="Cortex_XSOAR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Mar 2024 10:01:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/unable-to-send-slack-block-messages/m-p/580900#M3161</guid>
      <dc:creator>IDarma</dc:creator>
      <dc:date>2024-03-19T10:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send Slack block messages</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/unable-to-send-slack-block-messages/m-p/582373#M3192</link>
      <description>&lt;P&gt;If you want to send a Slack block, you need to create an incident rather than test on a debugger,&amp;nbsp;&lt;SPAN&gt;just due to how the entitlements are handled in the playbook debugger.&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;This is a known limitation.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 14:18:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/unable-to-send-slack-block-messages/m-p/582373#M3192</guid>
      <dc:creator>gyldz</dc:creator>
      <dc:date>2024-04-02T14:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send Slack block messages</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/unable-to-send-slack-block-messages/m-p/584020#M3255</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/287891"&gt;@gyldz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;So, how do I create an incident so that Slack Block gets sent to the Slack channel?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 13:22:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/unable-to-send-slack-block-messages/m-p/584020#M3255</guid>
      <dc:creator>KHassan</dc:creator>
      <dc:date>2024-04-17T13:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send Slack block messages</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/unable-to-send-slack-block-messages/m-p/587188#M3317</link>
      <description>&lt;P&gt;Yeah, I discovered shortly after creating this thread that you must test this on an existing incident rather than using the debugger panel. They didn't really make this clear in the documentation. Ended up wasting hours trying to find the cause. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1595820665"&gt;@KHassan&lt;/a&gt;, you can test it on any kind of incident. Just create a playbook with the SlackBlockBuilder task in it, then open an incident and change the playbook in the Work Plan tab.&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2024 11:58:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/unable-to-send-slack-block-messages/m-p/587188#M3317</guid>
      <dc:creator>IDarma</dc:creator>
      <dc:date>2024-05-18T11:58:46Z</dc:date>
    </item>
  </channel>
</rss>

