<?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>question Nifi InvokeHTTP failure response in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-InvokeHTTP-failure-response/m-p/319659#M227918</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using invokeHTTP processor for calling REST API when that REST api gives error like&amp;nbsp;&lt;SPAN&gt;422 or other it is also sending reason in response body.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to retrieve&amp;nbsp;that message and send it on mail but on this kind of error flow go into retry or no retry which gives me original flow file only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can anyone pls help me to retrieve response body in this case instead of original flow file.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in Advanced.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jul 2021 14:26:12 GMT</pubDate>
    <dc:creator>Amn</dc:creator>
    <dc:date>2021-07-01T14:26:12Z</dc:date>
    <item>
      <title>Nifi InvokeHTTP failure response</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-InvokeHTTP-failure-response/m-p/319659#M227918</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using invokeHTTP processor for calling REST API when that REST api gives error like&amp;nbsp;&lt;SPAN&gt;422 or other it is also sending reason in response body.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to retrieve&amp;nbsp;that message and send it on mail but on this kind of error flow go into retry or no retry which gives me original flow file only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can anyone pls help me to retrieve response body in this case instead of original flow file.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in Advanced.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 14:26:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-InvokeHTTP-failure-response/m-p/319659#M227918</guid>
      <dc:creator>Amn</dc:creator>
      <dc:date>2021-07-01T14:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi InvokeHTTP failure response</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-InvokeHTTP-failure-response/m-p/319685#M227927</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The InvokeHTTP processor provides couple of the write attributes with value for example invokehttp.status.code&lt;BR /&gt;401&lt;BR /&gt;invokehttp.status.message&lt;BR /&gt;Unauthorized&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when you have this attributes&amp;nbsp; in Failure or No Retry relationship ,you can use Replace text processor as below to overwrite the original flow into new flow file so that you send that in email .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HTTPErrorAndMessage.PNG" style="width: 463px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31754i63C3DAA100279A67/image-size/large?v=v2&amp;amp;px=999" role="button" title="HTTPErrorAndMessage.PNG" alt="HTTPErrorAndMessage.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ReplaceText processor properties&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ReplaceText#.PNG" style="width: 715px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31755i838F1AF30D1520BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="ReplaceText#.PNG" alt="ReplaceText#.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are looking for lot more message of the response body , please check whether you can configure in any attribute in InvokeHTTP processor so that you can use it ReplaceText processor to overwrite the original flow file&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 19:46:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-InvokeHTTP-failure-response/m-p/319685#M227927</guid>
      <dc:creator>adhishankarit</dc:creator>
      <dc:date>2021-07-01T19:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi InvokeHTTP failure response</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-InvokeHTTP-failure-response/m-p/320244#M228123</link>
      <description>&lt;P&gt;Hi&amp;nbsp;adhisankrit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot for help, i am new to NIFI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;this solution worked.&lt;/P&gt;&lt;P&gt;Basically their are write attributes present in processor where status and response etc stuff are present which can be accessed.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 12:03:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-InvokeHTTP-failure-response/m-p/320244#M228123</guid>
      <dc:creator>Amn</dc:creator>
      <dc:date>2021-07-09T12:03:56Z</dc:date>
    </item>
  </channel>
</rss>

