Hello,
I'm using axios to call the api. Here is how I'm coding the get response export progress:
And finally I'm combining all needed calls into one big function like this:
The problem is sometimes (seemingly randomly) I get undefined survey responses. progressId is not null (I checked for that) I think the reason is the status in the Get Response Export Progress is not "complete". Should I keep looping until I get a status of complete? Am I doing something obviously wrong here?
It says in the docs " Keep looping until status has the value complete.". What does that mean in this context? Can I use recursion and keep calling the function until status === 'complete'?
Any help is appreciated!
Page 1 / 1
badi
I have used Postman and faced this issue when the number of responses is relatively large, it takes time to "complete". Yes, you need to keep it in a loop until it says complete. After that only you would be able to pull the file id and actual response file.
Also, in this context, it means running the API call again and again until the status is complete.
Hope it helps!
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.