<?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 Re: Difficulty Sending GraphQL POST Requests Using InvokeHTTP Processor in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/380367#M244048</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108093"&gt;@Fayza&lt;/a&gt;&amp;nbsp; Without seeing any error it is impossible for us to solve a specific problem.&amp;nbsp; &amp;nbsp;That said, I have some suggestions.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Always make sure you have a working api call. For example: Use Postman.&amp;nbsp; You need to 100% know the call is working, auth, headers, proper format, proper payload, etc.&amp;nbsp; This also makes sure the receiving end is open (networking, firewall, etc).&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Test invokteHTTP without routing fail,retry,no-retry back to the processor.&amp;nbsp; I use an output port for everything other than response.&amp;nbsp; In testing, you need to know what happened.&amp;nbsp; Inspect flowfile attributes inside of fail,retry, no-retry, to get more details. When i know my flow works, i may auto terminate, or re-route failure back to processor again, but NOT during testing/creation of the flow.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Last but not least, make sure that nifi host(s) are able to reach the endpoint.&amp;nbsp; I suspect this is the issue you are bumping into.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you get invokeHttp talking to the endpoint, you should be seeing more details as to what if any errors are in the mutation payload.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2023 13:16:55 GMT</pubDate>
    <dc:creator>steven-matison</dc:creator>
    <dc:date>2023-12-06T13:16:55Z</dc:date>
    <item>
      <title>Difficulty Sending GraphQL POST Requests Using InvokeHTTP Processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/380366#M244047</link>
      <description>&lt;P&gt;I'm encountering challenges when using the InvokeHTTP processor in Apache NiFi to send GraphQL POST requests. Specifically, I'm trying to execute GraphQL mutations via POST but facing difficulties in configuring the InvokeHTTP processor to handle these requests properly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;I've set up an InvokeHTTP processor to send GraphQL mutation requests via POST to a specific endpoint. However, the requests don't seem to be reaching the GraphQL server as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Details&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;The InvokeHTTP processor is configured with the following properties:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;HTTP Method: POST&lt;/LI&gt;&lt;LI&gt;Remote URL: myURL...!&lt;/LI&gt;&lt;LI&gt;Headers: Content-Type: application/json, Accept: application/json&lt;/LI&gt;&lt;LI&gt;Send Parameters in: Body&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The body content is constructed in JSON format as required by the GraphQL server. It includes the mutation query and variables.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request for Help&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;I'm seeking guidance on how to properly configure the InvokeHTTP processor in NiFi to successfully send GraphQL POST requests. If anyone has experience using InvokeHTTP for GraphQL mutations or suggestions for troubleshooting this issue, I would greatly appreciate your insights.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fayza_0-1701866239577.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39126i2F8780768F8D190C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fayza_0-1701866239577.png" alt="Fayza_0-1701866239577.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fayza_1-1701866259190.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39127iB229D9942B9F99FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fayza_1-1701866259190.png" alt="Fayza_1-1701866259190.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fayza_2-1701866279654.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39128iDE51FA130D0055AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fayza_2-1701866279654.png" alt="Fayza_2-1701866279654.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fayza_3-1701866307117.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39129i7938AF038365516A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fayza_3-1701866307117.png" alt="Fayza_3-1701866307117.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QUERY: {&lt;BR /&gt;"query": "mutation AddUser($input: [AddUserInput!]!, $upsert: Boolean) { addUser(input: $input, upsert: $upsert) { user { name } } }",&lt;BR /&gt;"variables": {&lt;BR /&gt;"input": [&lt;BR /&gt;{&lt;BR /&gt;"name": "Ali",&lt;BR /&gt;"username": "Ali",&lt;BR /&gt;"phone1": "111222333",&lt;BR /&gt;"address": "LAHORE"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"upsert": false&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 12:40:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/380366#M244047</guid>
      <dc:creator>Fayza</dc:creator>
      <dc:date>2023-12-06T12:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Sending GraphQL POST Requests Using InvokeHTTP Processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/380367#M244048</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108093"&gt;@Fayza&lt;/a&gt;&amp;nbsp; Without seeing any error it is impossible for us to solve a specific problem.&amp;nbsp; &amp;nbsp;That said, I have some suggestions.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Always make sure you have a working api call. For example: Use Postman.&amp;nbsp; You need to 100% know the call is working, auth, headers, proper format, proper payload, etc.&amp;nbsp; This also makes sure the receiving end is open (networking, firewall, etc).&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Test invokteHTTP without routing fail,retry,no-retry back to the processor.&amp;nbsp; I use an output port for everything other than response.&amp;nbsp; In testing, you need to know what happened.&amp;nbsp; Inspect flowfile attributes inside of fail,retry, no-retry, to get more details. When i know my flow works, i may auto terminate, or re-route failure back to processor again, but NOT during testing/creation of the flow.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Last but not least, make sure that nifi host(s) are able to reach the endpoint.&amp;nbsp; I suspect this is the issue you are bumping into.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you get invokeHttp talking to the endpoint, you should be seeing more details as to what if any errors are in the mutation payload.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 13:16:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/380367#M244048</guid>
      <dc:creator>steven-matison</dc:creator>
      <dc:date>2023-12-06T13:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Sending GraphQL POST Requests Using InvokeHTTP Processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/380369#M244049</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp; Thank you for responding.&lt;/P&gt;&lt;P&gt;I have defined the Body Content:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fayza_0-1701869240768.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39130iB048F251F84876FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fayza_0-1701869240768.png" alt="Fayza_0-1701869240768.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you provide me any information in the form of article of any other sources&amp;nbsp; where I can find the POST data of GraphQL. So, that It will help full for me.&lt;/P&gt;&lt;P&gt;Actually, I have CURL command which is in working state. I try it too. Data from POSTMAN has been sending but as I define the Method and URL in the InvokedHTTP processor. Can you tell me where I can manage my post request data???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 13:30:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/380369#M244049</guid>
      <dc:creator>Fayza</dc:creator>
      <dc:date>2023-12-06T13:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Sending GraphQL POST Requests Using InvokeHTTP Processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/380370#M244050</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to POST the data by using Apache NiFi?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have CURL Command of GraphQL only&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 13:33:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/380370#M244050</guid>
      <dc:creator>Fayza</dc:creator>
      <dc:date>2023-12-06T13:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Sending GraphQL POST Requests Using InvokeHTTP Processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/380371#M244051</link>
      <description>&lt;P&gt;You need to send a flowfile to InvokeHttp that has the content you want.&amp;nbsp; &amp;nbsp;Make this flow to test:&amp;nbsp; GenerateFlowfile (body of flowfile is the JSON payload), route to InvokeHttp.&amp;nbsp; Your post headers are added to InvokeHttp in similar manner as to how you did "Body Content".&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 13:42:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/380371#M244051</guid>
      <dc:creator>steven-matison</dc:creator>
      <dc:date>2023-12-06T13:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Sending GraphQL POST Requests Using InvokeHTTP Processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/380424#M244063</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp; Thank you for responding..!&lt;/P&gt;&lt;P&gt;By using&lt;/P&gt;&lt;DIV class="slick-cell l0 r0 active selected"&gt;&lt;SPAN class="table-cell required"&gt;HTTP Method: &lt;/SPAN&gt;POST&lt;/DIV&gt;&lt;DIV class="slick-cell l0 r0 active selected"&gt;&lt;SPAN class="table-cell required"&gt;HTTP URL&lt;/SPAN&gt;: MyURL&lt;/DIV&gt;&lt;DIV class="slick-cell l0 r0 active selected"&gt;&lt;SPAN class="table-cell required"&gt;Request Content-Type&lt;/SPAN&gt;: application/json&lt;/DIV&gt;&lt;DIV class="slick-cell l0 r0 active selected"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="slick-cell l0 r0 active selected"&gt;and all other parms are sending through the "GenerateFlowFile" and then remove whitespaces by "ReplaceText" processor.&lt;/DIV&gt;&lt;DIV class="slick-cell l0 r0 active selected"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="slick-cell l0 r0 active selected"&gt;This flow will send the data to the GraphQL database.&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Dec 2023 09:39:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/380424#M244063</guid>
      <dc:creator>Fayza</dc:creator>
      <dc:date>2023-12-07T09:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Sending GraphQL POST Requests Using InvokeHTTP Processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/380456#M244065</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108093"&gt;@Fayza&lt;/a&gt;&amp;nbsp;Nice work.&amp;nbsp; If you can, you should try to remove ReplaceText.&amp;nbsp; You should be able to get the payload exactly how you want it in text input box for GenerateFlowFile.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 12:50:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/380456#M244065</guid>
      <dc:creator>steven-matison</dc:creator>
      <dc:date>2023-12-07T12:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Sending GraphQL POST Requests Using InvokeHTTP Processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/402628#M251728</link>
      <description>&lt;P&gt;I have solved this problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jasondeveloper_0-1740049227302.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/44022iBEE55138409D2F3A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jasondeveloper_0-1740049227302.png" alt="Jasondeveloper_0-1740049227302.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jasondeveloper_3-1740049348297.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/44025i01B59D476BF95B05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jasondeveloper_3-1740049348297.png" alt="Jasondeveloper_3-1740049348297.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jasondeveloper_1-1740049289660.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/44023i1DFF32C69E1869A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jasondeveloper_1-1740049289660.png" alt="Jasondeveloper_1-1740049289660.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jasondeveloper_2-1740049316550.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/44024i3F98153DE2E6CE84/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jasondeveloper_2-1740049316550.png" alt="Jasondeveloper_2-1740049316550.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jasondeveloper_4-1740049398680.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/44026iCEEC507532F9E657/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jasondeveloper_4-1740049398680.png" alt="Jasondeveloper_4-1740049398680.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 11:03:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Difficulty-Sending-GraphQL-POST-Requests-Using-InvokeHTTP/m-p/402628#M251728</guid>
      <dc:creator>Jasondeveloper</dc:creator>
      <dc:date>2025-02-20T11:03:33Z</dc:date>
    </item>
  </channel>
</rss>

