<?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: Utility - HTTP (Async)::POST JSON issues in Digital Exchange</title>
    <link>https://community.blueprism.com/t5/Digital-Exchange/Utility-HTTP-Async-POST-JSON-issues/m-p/51937#M518</link>
    <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="f7aba50e-dd08-4ef8-90f3-824e3a99e914" data-tag-text="@Jason Cappleman" href="https://community.blueprism.com/network/profile?UserKey=f7aba50e-dd08-4ef8-90f3-824e3a99e914" data-itemmentionkey="c07f1d4f-39de-4ff8-807b-8561b7fa1194"&gt;@Jason Cappleman&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Have you taken a look at the example performance measurement process included on the asset page for the async HTTP VBO?&lt;BR /&gt;&lt;BR /&gt;If you're sending just regular JSON you'd want the &lt;STRONG&gt;TextContent&lt;/STRONG&gt; field of the record to look something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="6268.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/6449iB8FE960437C0FAD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="6268.png" alt="6268.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Do not place double quotes around the value. This is just like a Text data item. Also, your &lt;STRONG&gt;ContentType&lt;/STRONG&gt; entry should just be application/json. Do not include double quotes around the value. Text data items, in Blue Prism, are not double quoted. Double quotes are only necessary when you're dealing for a Calculation stage/field value.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Sun, 15 May 2022 22:08:00 GMT</pubDate>
    <dc:creator>ewilson</dc:creator>
    <dc:date>2022-05-15T22:08:00Z</dc:date>
    <item>
      <title>Utility - HTTP (Async)::POST JSON issues</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Utility-HTTP-Async-POST-JSON-issues/m-p/51936#M517</link>
      <description>I'm trying to POST a simple JSON object , but I keep getting an error. Also I'm calling the startup action before POST.&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Utility___HTTP__Async_.ExecuteRequest(HttpMethod method, String descriptor, String url, DataTable requestHeaders, String contentType, DataTable nvContent, String textContent, DataTable fileContent, String username, String password, String bearerToken)
   at Utility___HTTP__Async_.&amp;lt;&amp;gt;c__DisplayClass5_0.&amp;lt;ExecuteAsync&amp;gt;b__0()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;I created a request collection to match the docs. If I leave out a field regardless of it saying it's optional, then I get an error in regards to that field so I have fields that are there, but not populated too. (optional ones). Also the docs say JSON needs to be a string so I assume you have to stringify it, but I tried that and just wrapping JSON object in quotes like this&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;"\"{'test': 'testing'}\""

AND 

"{'test': 'testing'}"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but that doesn't seem to work unless something else is causing my POST issue.&lt;BR /&gt;&lt;BR /&gt;Here's my request collection&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="6271.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/6454i19C11FBA3F4B9588/image-size/large?v=v2&amp;amp;px=999" role="button" title="6271.png" alt="6271.png" /&gt;&lt;/span&gt;&lt;BR /&gt;What am I doing wrong? I appreciate any help!&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2022 18:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Utility-HTTP-Async-POST-JSON-issues/m-p/51936#M517</guid>
      <dc:creator>JasonCappleman</dc:creator>
      <dc:date>2022-05-14T18:24:00Z</dc:date>
    </item>
    <item>
      <title>RE: Utility - HTTP (Async)::POST JSON issues</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Utility-HTTP-Async-POST-JSON-issues/m-p/51937#M518</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="f7aba50e-dd08-4ef8-90f3-824e3a99e914" data-tag-text="@Jason Cappleman" href="https://community.blueprism.com/network/profile?UserKey=f7aba50e-dd08-4ef8-90f3-824e3a99e914" data-itemmentionkey="c07f1d4f-39de-4ff8-807b-8561b7fa1194"&gt;@Jason Cappleman&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Have you taken a look at the example performance measurement process included on the asset page for the async HTTP VBO?&lt;BR /&gt;&lt;BR /&gt;If you're sending just regular JSON you'd want the &lt;STRONG&gt;TextContent&lt;/STRONG&gt; field of the record to look something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="6268.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/6449iB8FE960437C0FAD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="6268.png" alt="6268.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Do not place double quotes around the value. This is just like a Text data item. Also, your &lt;STRONG&gt;ContentType&lt;/STRONG&gt; entry should just be application/json. Do not include double quotes around the value. Text data items, in Blue Prism, are not double quoted. Double quotes are only necessary when you're dealing for a Calculation stage/field value.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 15 May 2022 22:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Utility-HTTP-Async-POST-JSON-issues/m-p/51937#M518</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-05-15T22:08:00Z</dc:date>
    </item>
  </channel>
</rss>

