<?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 tHttpRequest not giving same results as Postman/JS script in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tHttpRequest-not-giving-same-results-as-Postman-JS-script/m-p/2265490#M45016</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm trying to recreate the logic of a Node JS script in Talend. The script runs calls on GameAnalytics API. A screenshot is attached and the logic is:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;OL&gt; 
 &lt;LI&gt;Request an authentication token (works fine)&lt;/LI&gt; 
 &lt;LI&gt;Request a list of games with info about them (works fine)&lt;/LI&gt; 
 &lt;LI&gt;Request URLs for each game (doesn't work)&lt;/LI&gt; 
 &lt;LI&gt;Fetch the file at the URL (doesn't work because of step 4)&lt;/LI&gt; 
&lt;/OL&gt; 
&lt;P&gt;Where I'm struggling is for the 3rd API call that uses 10 parameters (see a screenshot for the JS script and Postman setup). Both the script and Postman return data (an array of URLs) but Talend doesn't give anything. I checked the values passed as parameters and that I'm getting from the globalMap and they look good. When I take the same parameters used in Talend and use them in Postman, it works.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So is there anything I should set differently to make this job run? How different are the calls done with a tHttpRequest VS Node JS libraries and Postman?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any help appreciated!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Antoine&lt;/P&gt;</description>
    <pubDate>Sun, 17 Mar 2019 17:18:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-17T17:18:39Z</dc:date>
    <item>
      <title>tHttpRequest not giving same results as Postman/JS script</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHttpRequest-not-giving-same-results-as-Postman-JS-script/m-p/2265490#M45016</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm trying to recreate the logic of a Node JS script in Talend. The script runs calls on GameAnalytics API. A screenshot is attached and the logic is:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;OL&gt; 
 &lt;LI&gt;Request an authentication token (works fine)&lt;/LI&gt; 
 &lt;LI&gt;Request a list of games with info about them (works fine)&lt;/LI&gt; 
 &lt;LI&gt;Request URLs for each game (doesn't work)&lt;/LI&gt; 
 &lt;LI&gt;Fetch the file at the URL (doesn't work because of step 4)&lt;/LI&gt; 
&lt;/OL&gt; 
&lt;P&gt;Where I'm struggling is for the 3rd API call that uses 10 parameters (see a screenshot for the JS script and Postman setup). Both the script and Postman return data (an array of URLs) but Talend doesn't give anything. I checked the values passed as parameters and that I'm getting from the globalMap and they look good. When I take the same parameters used in Talend and use them in Postman, it works.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So is there anything I should set differently to make this job run? How different are the calls done with a tHttpRequest VS Node JS libraries and Postman?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any help appreciated!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Antoine&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 17:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHttpRequest-not-giving-same-results-as-Postman-JS-script/m-p/2265490#M45016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-17T17:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: tHttpRequest not giving same results as Postman/JS script</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHttpRequest-not-giving-same-results-as-Postman-JS-script/m-p/2265491#M45017</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why you decide - API does not work?&lt;/P&gt;&lt;P&gt;as I can see from attached screenshots - it tExtractJSON returns 0,&amp;nbsp; but response contain data&lt;/P&gt;&lt;P&gt;may be an error just in parse JSON settings?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the response file after tReplicate?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 01:08:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHttpRequest-not-giving-same-results-as-Postman-JS-script/m-p/2265491#M45017</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-18T01:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: tHttpRequest not giving same results as Postman/JS script</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHttpRequest-not-giving-same-results-as-Postman-JS-script/m-p/2265492#M45018</link>
      <description>&lt;P&gt;So when I tested yesterday the file containing the response was empty, no rows. Now I've tested again and it contains what's shown in the attached picture. Not sure what this format is to be honest. Some kind of encoding?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also I noticed the JS script was using a "gzip: true" parameter but I didn't specify anything except accepted encodings in the headers. Please see attached the tHttpRequest component parameters.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm not a huge Talend user so please forgive my lack of knowledge here &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;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LvO5"&gt;response.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lv6b"&gt;thttprequest-parameters.png&lt;/A&gt;</description>
      <pubDate>Mon, 18 Mar 2019 03:51:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHttpRequest-not-giving-same-results-as-Postman-JS-script/m-p/2265492#M45018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-18T03:51:24Z</dc:date>
    </item>
  </channel>
</rss>

