I am using REST API requests to refresh a Tableau TDE using Talend job. In my Talend job, I am using tRest component to send request to Tableau server using URL. Once the TDE refresh starts, I need to check the progress of refresh for which I am sending another REST API request in a loop. The loop will terminate when the refresh progress reaches to 100.
The problem I am facing
here
is everytime when my loop starts, in the 1st iteration I am getting a null response body, however my job execution shows 1 row processed. Also, in the 2nd iteration, response body is coming but progress is coming as null. From the 3rd iteration, it is giving me the correct progress. However, at the same time when I am checking the progress using Postman, I am getting the expected response.
I am not sure whether the problem is with Rest connection, or there is a lag in the refresh or something is wrong in my job.
In my job I am sending in total 5-6 requests to tableau server using multiple tRest and everywhere I am getting the required response, but specifically where I am using this loop to check progress, null response body is coming in the 1st iteration.