<?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: Getting 400 Bad request Error in trest client component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244655#M30734</link>
    <description>&lt;P&gt;Sorry&amp;nbsp; &amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQLlAAO"&gt;@baladevi&lt;/A&gt;&amp;nbsp; i don't have any such API to call with such "Accept".&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2019 16:37:17 GMT</pubDate>
    <dc:creator>Sujay1</dc:creator>
    <dc:date>2019-09-23T16:37:17Z</dc:date>
    <item>
      <title>Getting 400 Bad request Error in trest client component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244646#M30725</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;When I was calling a http service using oauth Bearer token method of trestclient I am getting 400 service error but for the same url in postman I was able to retrieve the expected output.&lt;/P&gt; 
&lt;P&gt;How can I troubleshoot this issue or is there any other component apart from trestclient we can use for this.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244646#M30725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 400 Bad request Error in trest client component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244647#M30726</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQLlAAO"&gt;@baladevi&lt;/A&gt;&amp;nbsp; can you post screenshots of how ur calling.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 12:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244647#M30726</guid>
      <dc:creator>Sujay1</dc:creator>
      <dc:date>2019-09-15T12:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 400 Bad request Error in trest client component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244648#M30727</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQKYAA4"&gt;@Sujay&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find the attached screenshot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LwAA"&gt;Trest_Advance.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LwPP"&gt;Trest_main.PNG&lt;/A&gt;</description>
      <pubDate>Sun, 15 Sep 2019 15:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244648#M30727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-15T15:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 400 Bad request Error in trest client component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244649#M30728</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQLlAAO"&gt;@baladevi&lt;/A&gt;&amp;nbsp; i was not having any API to test so i used postman API itself for testing the Authorization part.Try like below and let me know if it works.&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="Capture.PNG" style="width: 839px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7JV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137572i4BB7E5881AE2BBBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7JV.png" alt="0683p000009M7JV.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 836px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7Gn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143505iF108F50BC7A0C6AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7Gn.png" alt="0683p000009M7Gn.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 806px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7Jf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153804i31827D7BEC842A0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7Jf.png" alt="0683p000009M7Jf.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Let me know how it goes. happy to help&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 17:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244649#M30728</guid>
      <dc:creator>Sujay1</dc:creator>
      <dc:date>2019-09-15T17:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 400 Bad request Error in trest client component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244650#M30729</link>
      <description>Hi,&lt;BR /&gt;I tried in that way as well but I was getting the same error. Is there a way where we can get what request is been generated and sent. The same http url when I tried in thttprequest component it gave me a successful response but I want to retrieve the response headers which is not available in the thttprequest component.&lt;BR /&gt;&lt;BR /&gt;Unfortunately I don't have access to the server logs to figure out what the issue was?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bala</description>
      <pubDate>Sun, 15 Sep 2019 18:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244650#M30729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-15T18:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 400 Bad request Error in trest client component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244651#M30730</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You could access to your response header with tRESTClient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;((java.util.Map&amp;lt;String,java.util.List&amp;lt;String&amp;gt;&amp;gt;)globalMap.get("tRESTClient_1_HEADERS"))&lt;/PRE&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 08:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244651#M30730</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-17T08:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 400 Bad request Error in trest client component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244652#M30731</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I get Error in trestclient for that particular request. The same request works well and good with thttprequest component.&lt;/P&gt;&lt;P&gt;The URL what I am trying to use will send the response in header which I can able to retrieve only in the trestclient not from the thtprequest component. I have attached the screenshots of the success response when I use thttprequest component and the Error response when using trestclient component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bala&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 17:12:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244652#M30731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-18T17:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 400 Bad request Error in trest client component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244653#M30732</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sorry i think I missed the screen shots in the previous post&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get Error in trestclient for that particular request. The same request works well and good with thttprequest component.&lt;/P&gt;&lt;P&gt;The URL what I am trying to use will send the response in header which I can able to retrieve only in the trestclient not from the thtprequest component. I have attached the screenshots of the success response when I use thttprequest component and the Error response when using trestclient component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bala&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lwda"&gt;thttpSuccess.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lwdk"&gt;Trest_Error.PNG&lt;/A&gt;</description>
      <pubDate>Wed, 18 Sep 2019 17:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244653#M30732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-18T17:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 400 Bad request Error in trest client component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244654#M30733</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQKYAA4"&gt;@Sujay&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000004XsaeAAC"&gt;@xdshi&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I tried to sniff the request via Wireshark...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;DIV&gt;
  &amp;nbsp; 
&lt;/DIV&gt; 
&lt;DIV&gt;
  The generated request is: 
&lt;/DIV&gt; 
&lt;DIV&gt;
  &amp;nbsp; 
&lt;/DIV&gt; 
&lt;DIV&gt;
  GET /api/v1/Group/1245676456456/$export HTTP/1.1 
&lt;/DIV&gt; 
&lt;DIV&gt;
  Content-Type: */* 
&lt;/DIV&gt; 
&lt;DIV&gt;
  Accept: application/json,application/fhir+json 
&lt;/DIV&gt; 
&lt;DIV&gt;
  Prefer: respond-async 
&lt;/DIV&gt; 
&lt;DIV&gt;
  Authorization: Bearer yJ9 
&lt;/DIV&gt; 
&lt;DIV&gt;
  User-Agent: Apache CXF 3.1.2 
&lt;/DIV&gt; 
&lt;DIV&gt;
  Cache-Control: no-cache 
&lt;/DIV&gt; 
&lt;DIV&gt;
  Pragma: no-cache 
&lt;/DIV&gt; 
&lt;DIV&gt;
  Host: my.host 
&lt;/DIV&gt; 
&lt;DIV&gt;
  Connection: keep-alive 
&lt;/DIV&gt; 
&lt;DIV&gt;
  &amp;nbsp; 
&lt;/DIV&gt; 
&lt;DIV&gt;
  &amp;nbsp; 
&lt;/DIV&gt; 
&lt;DIV&gt;
  It looks like tRestClient currently has a setting of "Accept" with the default values as "XML"/ "JSON"/ "any". Since my endpoint requires "application/fhir+json", I add that as an additional header. 
&lt;/DIV&gt; 
&lt;DIV&gt;
  &amp;nbsp; 
&lt;/DIV&gt; 
&lt;DIV&gt;
  However, the endpoint accepts only one "Accept" parameter... "application/fhir+json". This is causing my request to be failed. 
&lt;/DIV&gt; 
&lt;DIV&gt;
  &amp;nbsp; 
&lt;/DIV&gt; 
&lt;DIV&gt;
  Is there any quick way to handle this by customizing the tRestClient? I am thinking if I can add a new ACCEPT; for eg: FHIR with the value as "application/fhir+json", it could help? 
&lt;/DIV&gt; 
&lt;DIV&gt;
  &amp;nbsp; 
&lt;/DIV&gt; 
&lt;P&gt;&lt;SPAN&gt;Can someone help with this?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Bala&lt;/SPAN&gt;&lt;/P&gt; 
&lt;DIV&gt;
  &amp;nbsp; 
&lt;/DIV&gt;</description>
      <pubDate>Wed, 18 Sep 2019 20:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244654#M30733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-18T20:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 400 Bad request Error in trest client component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244655#M30734</link>
      <description>&lt;P&gt;Sorry&amp;nbsp; &amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQLlAAO"&gt;@baladevi&lt;/A&gt;&amp;nbsp; i don't have any such API to call with such "Accept".&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 16:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-400-Bad-request-Error-in-trest-client-component/m-p/2244655#M30734</guid>
      <dc:creator>Sujay1</dc:creator>
      <dc:date>2019-09-23T16:37:17Z</dc:date>
    </item>
  </channel>
</rss>

