-2
Hello, all right? I’ll explain my question
I have a multi-name array to automate a customer list and need to send one by one on a get request
Example site.com.br/api/registration/user/ >name
I need to go through the entire array, remove a name from it and get into the api, wait for the answer and move on to the next one, and at the same time show a kind of percentage of how much is left to finish the array.
Thanks for the help :)
When I get home I’ll answer
– Stan
It worked, the problem is that when the server does not recognize the client, I searched and found the "Promise.Reject", I need to use it to continue the queue ? if yes how can I apply this Function ? [Edit: I used resolve("error"); and the queue continued, it’s a good way to solve ?]
– Stan
@Plan ok, and if he makes a mistake should still count to the
progress
? In this case it places the contents ofthen(
here too.catch(function(err) {
 console.log(err);
 });
– Sergio