<?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: tRestClient returns BadRequestException in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2283671#M57510</link>
    <description>Hi, 
&lt;BR /&gt;We have replied to your another topic: 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCoIiCAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/tRestClient-returns-BadRequestException/td-p/93550&lt;/A&gt; 
&lt;BR /&gt;Please stick to one topic so that we can pay individule attention to it. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
    <pubDate>Mon, 21 Mar 2016 08:12:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-21T08:12:19Z</dc:date>
    <item>
      <title>tRestClient returns BadRequestException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2283670#M57509</link>
      <description>Here is what the log shows. The message sent to webservice: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;ID: 1&lt;BR /&gt;Address: http://localhost:8081/api/users&lt;BR /&gt;Http-Method: POST&lt;BR /&gt;Content-Type: application/json&lt;BR /&gt;Headers: {Content-Type=, Accept=, Authorization=}&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;It passes the header information successfully. However I do not see the payload being sent to the webservice. &amp;nbsp;The webservice returned this error message: 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;ID: 1&lt;BR /&gt;Response-Code: 400&lt;BR /&gt;Encoding: UTF-8&lt;BR /&gt;Content-Type: application/json; charset=utf-8&lt;BR /&gt;Headers: {Access-Control-Allow-Headers=, Cache-Control=, Content-Length=, content-type=, Date=, ETag=, Expires=, Pragma=, Server=, Vary=, X-Powered-By=, X-SourceFiles=, X-UA-Compatible=}&lt;BR /&gt;Payload: {"status":"error","message":"wrong json format - must br as array"}&lt;BR /&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;This is how I have linked the objects: 
&lt;BR /&gt;tfileinputdelimited-&amp;gt;twritejsonfield-&amp;gt;trestclient-&amp;gt;tlog. 
&lt;BR /&gt;In the Input Schema of the trestclient, I have mapped the output from twritejsonfield to one column output.&amp;nbsp; 
&lt;BR /&gt;Is this how a payload is passed from a previous component to trestclient?</description>
      <pubDate>Wed, 16 Mar 2016 11:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2283670#M57509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-16T11:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient returns BadRequestException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2283671#M57510</link>
      <description>Hi, 
&lt;BR /&gt;We have replied to your another topic: 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCoIiCAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/tRestClient-returns-BadRequestException/td-p/93550&lt;/A&gt; 
&lt;BR /&gt;Please stick to one topic so that we can pay individule attention to it. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 21 Mar 2016 08:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2283671#M57510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-21T08:12:19Z</dc:date>
    </item>
  </channel>
</rss>

