<?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 Using POST with Send request via HTTP doesn't work well in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/using-post-with-send-request-via-http-doesn-t-work-well/m-p/5995#M2636</link>
    <description>&lt;P&gt;Hi, teams.&amp;nbsp;I want to use [Send request via HTTP]App to send messages to the Slack incoming webhook.Since icon_emoji and username are required, I am using HTTP request instead of Slack Post APP.&lt;SPAN&gt;I have completed setting up an incoming webhook in Slack and completed setting up Connection in Workato.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I run it, I can send text to Slack, but for some reason the recipe causes an error.&amp;nbsp;&lt;SPAN&gt;It says it's a JSON error, but I have no idea.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Does anyone know the cause?&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;"request_name": "Send request",&lt;BR /&gt;"request": {&lt;BR /&gt;"method": "POST",&lt;BR /&gt;"content_type": "application/json",&lt;BR /&gt;"url": "https://hooks.slack.com/services/XXXXXXXX/XXXXXXXXXXX/AAAAAAAAAAAAAAAAAAA",&lt;BR /&gt;"body": "{\"text\": \"Test for sending to Slack \", \"username\": \"Grey Kitty\", \"icon_emoji\": \":sendai:\"}"&lt;BR /&gt;},&lt;BR /&gt;"response": {&lt;BR /&gt;"output_type": "json",&lt;BR /&gt;"expected_encoding": "UTF-8",&lt;BR /&gt;"ignore_http_errors": "false"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Error&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;unexpected token at 'ok'&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Debug&lt;/P&gt;&lt;PRE&gt;NETWORK TRACE&lt;BR /&gt;POST&lt;BR /&gt;200 https://hooks.slack.com/services/XXXXXXXX/XXXXXXXXXXX/AAAAAAAAAAAAAAAAAAA&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2024 09:09:05 GMT</pubDate>
    <dc:creator>Mieko</dc:creator>
    <dc:date>2024-01-22T09:09:05Z</dc:date>
    <item>
      <title>Using POST with Send request via HTTP doesn't work well</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/using-post-with-send-request-via-http-doesn-t-work-well/m-p/5995#M2636</link>
      <description>&lt;P&gt;Hi, teams.&amp;nbsp;I want to use [Send request via HTTP]App to send messages to the Slack incoming webhook.Since icon_emoji and username are required, I am using HTTP request instead of Slack Post APP.&lt;SPAN&gt;I have completed setting up an incoming webhook in Slack and completed setting up Connection in Workato.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I run it, I can send text to Slack, but for some reason the recipe causes an error.&amp;nbsp;&lt;SPAN&gt;It says it's a JSON error, but I have no idea.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Does anyone know the cause?&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;"request_name": "Send request",&lt;BR /&gt;"request": {&lt;BR /&gt;"method": "POST",&lt;BR /&gt;"content_type": "application/json",&lt;BR /&gt;"url": "https://hooks.slack.com/services/XXXXXXXX/XXXXXXXXXXX/AAAAAAAAAAAAAAAAAAA",&lt;BR /&gt;"body": "{\"text\": \"Test for sending to Slack \", \"username\": \"Grey Kitty\", \"icon_emoji\": \":sendai:\"}"&lt;BR /&gt;},&lt;BR /&gt;"response": {&lt;BR /&gt;"output_type": "json",&lt;BR /&gt;"expected_encoding": "UTF-8",&lt;BR /&gt;"ignore_http_errors": "false"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Error&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;unexpected token at 'ok'&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Debug&lt;/P&gt;&lt;PRE&gt;NETWORK TRACE&lt;BR /&gt;POST&lt;BR /&gt;200 https://hooks.slack.com/services/XXXXXXXX/XXXXXXXXXXX/AAAAAAAAAAAAAAAAAAA&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 09:09:05 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/using-post-with-send-request-via-http-doesn-t-work-well/m-p/5995#M2636</guid>
      <dc:creator>Mieko</dc:creator>
      <dc:date>2024-01-22T09:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using POST with Send request via HTTP doesn't work well</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/using-post-with-send-request-via-http-doesn-t-work-well/m-p/6030#M2653</link>
      <description>&lt;P&gt;The issue has been resolved.&lt;/P&gt;&lt;P&gt;The problem was due to setting the Response Content Type to JSON in the APP Response section.&lt;/P&gt;&lt;P&gt;Changing it to TEXT resulted in successful completion.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 09:23:01 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/using-post-with-send-request-via-http-doesn-t-work-well/m-p/6030#M2653</guid>
      <dc:creator>Mieko</dc:creator>
      <dc:date>2024-01-24T09:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using POST with Send request via HTTP doesn't work well</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/using-post-with-send-request-via-http-doesn-t-work-well/m-p/6033#M2654</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/9938"&gt;@Mieko&lt;/a&gt;,&amp;nbsp;thanks for sharing your solution! I'm sure it will be super helpful for anyone else in the community that runs into a similar issue. &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 00:08:40 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/using-post-with-send-request-via-http-doesn-t-work-well/m-p/6033#M2654</guid>
      <dc:creator>meghan-legaspi</dc:creator>
      <dc:date>2024-01-25T00:08:40Z</dc:date>
    </item>
  </channel>
</rss>

