I'm paginating some data that is so large conceptually that I need to make several requests in order to get 100% of it before sending back in the express response.It's tricky.I've tried using request-promise, Promise.all(), looping for each URL/endpoint and forming one huge options = {} representative of all the request options I'm trying to hit...Nothing seems to work and the promises aren't fulfilled if I push the request objects into the array and then Promise.all(listOfRequestObjects).then(function(data){res.send(data)});just returns each request object in one array, but doesn't actually request them or return the data resulting from them.
Submitted January 08, 2018 at 08:38PM by redditpentester
No comments:
Post a Comment