<?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 tRest Client JSON Parse error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRest-Client-JSON-Parse-error/m-p/2307593#M79020</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Just getting into Talend and looking to develop a job to use the tRest client component to execute an API call and then eventually parse the error.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I developed the API call using Postman, and have got the tRest client component working (ish).&amp;nbsp; The response comes back with statuscode 200 (yay) but the body comes back as null and the string comes back as&lt;/P&gt; 
&lt;P&gt;{"error":{code":100,"message":"'JSON:&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt;arserError: expected false at line 1, column 2)&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The component details as follows&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;URL .site.comcom/api/rest/v2"&lt;/P&gt; 
&lt;P&gt;relative path: /grant_request/233"&lt;/P&gt; 
&lt;P&gt;http method: GET accept type JSON&lt;/P&gt; 
&lt;P&gt;query params: "cols"&amp;nbsp; value: "fiscal_organization_id"&lt;/P&gt; 
&lt;P&gt;use auth oauth2 bearer&amp;nbsp; token [supplied]&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;testing with postman the response is&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;{"grant_request":{"id":233,"program_organization_id":10035395}}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;is there anything that i'm missing?&amp;nbsp; or any pointers as to what the error is?&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;it looks like the request is bringing back data but that the data cannot be parsed as JSON.&amp;nbsp; &amp;nbsp;I've tried XML but to no avail.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 18:20:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-21T18:20:35Z</dc:date>
    <item>
      <title>tRest Client JSON Parse error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-Client-JSON-Parse-error/m-p/2307593#M79020</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Just getting into Talend and looking to develop a job to use the tRest client component to execute an API call and then eventually parse the error.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I developed the API call using Postman, and have got the tRest client component working (ish).&amp;nbsp; The response comes back with statuscode 200 (yay) but the body comes back as null and the string comes back as&lt;/P&gt; 
&lt;P&gt;{"error":{code":100,"message":"'JSON:&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt;arserError: expected false at line 1, column 2)&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The component details as follows&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;URL .site.comcom/api/rest/v2"&lt;/P&gt; 
&lt;P&gt;relative path: /grant_request/233"&lt;/P&gt; 
&lt;P&gt;http method: GET accept type JSON&lt;/P&gt; 
&lt;P&gt;query params: "cols"&amp;nbsp; value: "fiscal_organization_id"&lt;/P&gt; 
&lt;P&gt;use auth oauth2 bearer&amp;nbsp; token [supplied]&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;testing with postman the response is&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;{"grant_request":{"id":233,"program_organization_id":10035395}}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;is there anything that i'm missing?&amp;nbsp; or any pointers as to what the error is?&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;it looks like the request is bringing back data but that the data cannot be parsed as JSON.&amp;nbsp; &amp;nbsp;I've tried XML but to no avail.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 18:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-Client-JSON-Parse-error/m-p/2307593#M79020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-21T18:20:35Z</dc:date>
    </item>
  </channel>
</rss>

