<?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 REST API Service - several problems in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/REST-API-Service-several-problems/m-p/2211445#M9462</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've create Rest service using tRESTRequest component , here's my flow :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Talend_flow.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9VU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137956i7AD659835CC08D22/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9VU.png" alt="0683p000009M9VU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;On the "callback" path , I'm getting access token to external API and save it to context&amp;nbsp; , because this token is valid for 8 hours , I want to refresh it before expire.&lt;/P&gt; 
&lt;P&gt;To do this I use tSleep component but ..&lt;/P&gt; 
&lt;P&gt;1. when I've made POST call to "email" path , it looks like it triggers tSleep and codes are running ...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Trying to check how works "Wrong call" in&amp;nbsp;tRESTRequest&amp;nbsp; , I've set it and in response it should give me Document with 500 response it works , but :&lt;/P&gt; 
&lt;P&gt;2. It triggers "email" Path and throws an error because of not enough parameters (parameter (this path is sending email with data send via body in Post))&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How to handle this ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Luc&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:39:32 GMT</pubDate>
    <dc:creator>lucTalend</dc:creator>
    <dc:date>2024-11-16T02:39:32Z</dc:date>
    <item>
      <title>REST API Service - several problems</title>
      <link>https://community.qlik.com/t5/Talend-Studio/REST-API-Service-several-problems/m-p/2211445#M9462</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've create Rest service using tRESTRequest component , here's my flow :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Talend_flow.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9VU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137956i7AD659835CC08D22/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9VU.png" alt="0683p000009M9VU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;On the "callback" path , I'm getting access token to external API and save it to context&amp;nbsp; , because this token is valid for 8 hours , I want to refresh it before expire.&lt;/P&gt; 
&lt;P&gt;To do this I use tSleep component but ..&lt;/P&gt; 
&lt;P&gt;1. when I've made POST call to "email" path , it looks like it triggers tSleep and codes are running ...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Trying to check how works "Wrong call" in&amp;nbsp;tRESTRequest&amp;nbsp; , I've set it and in response it should give me Document with 500 response it works , but :&lt;/P&gt; 
&lt;P&gt;2. It triggers "email" Path and throws an error because of not enough parameters (parameter (this path is sending email with data send via body in Post))&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How to handle this ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Luc&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/REST-API-Service-several-problems/m-p/2211445#M9462</guid>
      <dc:creator>lucTalend</dc:creator>
      <dc:date>2024-11-16T02:39:32Z</dc:date>
    </item>
  </channel>
</rss>

