Forum Discussion

sdeng's avatar
sdeng
New Contributor II
6 years ago

Rest Get API parameter not working

We have a pipeline like below.

The second snap is to call an get api to get the run details of the previous run.
First Snap:(This one is using a different snaplex with the main pipeline and the rest get pipeline)

Second Snap:

In the rest get api, we’re using below to get the run details.
https://elastic.snaplogic.com/api/1/rest/public/runtime/“+pipe.projectPath.split(‘/’)[1]+”?limit=2500000
For most of the time, it’s working fine. But some of times, it’s not able to get the previous runs details.

We had tried other parameters like start/end time, or last_hours, but seems like because the first snap is using a different snaplex, the rest get is not able to get the run details.

There’s not much documents in this, can anyone explain how should we do for this?