<?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 tRestClient returns BadRequestException in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2278638#M54056</link>
    <description>I am sending a request to a webservice using tRestClient. The data is formatted in Json first before sending it to the webservice. The job fails with BadRequestException. I tried the request using a standard Rest client to ensure that the webservice is working fine. &amp;nbsp;I think it is some setting in the Trestclient that is causing problem. I have attached a zip file with the job. The request that I need to send to the service is below:&lt;BR /&gt;POST /api/users HTTP/1.1&lt;BR /&gt;Host: localhost:8081&lt;BR /&gt;Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjoiNTVmMWQxOGU3OTYwMmUyZGQxZThjZDhlIiwiYXBpU2VjcmV0IjoiMWI0YWMyNWQtOTQyOS1jZGE5LWZmY2YtYmRmMjljZDNlMTlmIiwiaWF0IjoxNDU3MzY5NTg2fQ.ffcp1Ih2sD0i2HjU8EoX1bzd7-tfC0U6kQ9wsvOXOLc&lt;BR /&gt;Content-Type: application/json&lt;BR /&gt;Cache-Control: no-cache&lt;BR /&gt;Postman-Token: 7833994a-5c06-cb7d-2aae-7135e1fe5744&lt;BR /&gt;</description>
    <pubDate>Tue, 15 Mar 2016 12:29:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-15T12:29:15Z</dc:date>
    <item>
      <title>tRestClient returns BadRequestException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2278638#M54056</link>
      <description>I am sending a request to a webservice using tRestClient. The data is formatted in Json first before sending it to the webservice. The job fails with BadRequestException. I tried the request using a standard Rest client to ensure that the webservice is working fine. &amp;nbsp;I think it is some setting in the Trestclient that is causing problem. I have attached a zip file with the job. The request that I need to send to the service is below:&lt;BR /&gt;POST /api/users HTTP/1.1&lt;BR /&gt;Host: localhost:8081&lt;BR /&gt;Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjoiNTVmMWQxOGU3OTYwMmUyZGQxZThjZDhlIiwiYXBpU2VjcmV0IjoiMWI0YWMyNWQtOTQyOS1jZGE5LWZmY2YtYmRmMjljZDNlMTlmIiwiaWF0IjoxNDU3MzY5NTg2fQ.ffcp1Ih2sD0i2HjU8EoX1bzd7-tfC0U6kQ9wsvOXOLc&lt;BR /&gt;Content-Type: application/json&lt;BR /&gt;Cache-Control: no-cache&lt;BR /&gt;Postman-Token: 7833994a-5c06-cb7d-2aae-7135e1fe5744&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Mar 2016 12:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2278638#M54056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-15T12:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient returns BadRequestException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2278639#M54057</link>
      <description>not able to upload the zip file or screenshot.&amp;nbsp;</description>
      <pubDate>Tue, 15 Mar 2016 12:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2278639#M54057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-15T12:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient returns BadRequestException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2278640#M54058</link>
      <description>is there a minimum no of posts that I should have before I can upload zip files?</description>
      <pubDate>Tue, 15 Mar 2016 12:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2278640#M54058</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-15T12:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient returns BadRequestException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2278641#M54059</link>
      <description>If someone can help with this, I can email you the zip file along with the csv file so you can run the job and see. Let me know pl.</description>
      <pubDate>Tue, 15 Mar 2016 15:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2278641#M54059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-15T15:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient returns BadRequestException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2278642#M54060</link>
      <description>Here is what the log shows: 
&lt;BR /&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;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;Payload: {"status":"error","message":"wrong json format - must br as array"} 
&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:30:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2278642#M54060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-16T11:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient returns BadRequestException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2278643#M54061</link>
      <description>Hi, 
&lt;BR /&gt;So far,&amp;nbsp; 
&lt;FONT color="black"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri, sans-serif"&gt;no limitation exists for the image.(10 posts for posting URL)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;You are able to&amp;nbsp; 
&lt;FONT color="black"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri, sans-serif"&gt;upload images for the first topic/post.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="black"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="black"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDQt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152492i8139BDF0D1E718DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDQt.png" alt="0683p000009MDQt.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 21 Mar 2016 07:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-returns-BadRequestException/m-p/2278643#M54061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-21T07:55:19Z</dc:date>
    </item>
  </channel>
</rss>

