0

While running request in a loop it shows an error ETIMEOUT around 101 times (length of the array).

for(var x=0;x<100;x++){request({
  uri: "abc.com,
 qs: {
   "token": 'xyz',
 },
 timeout:10000,}, function (err, result) {});}

Is there any solution?

Mika Sundland
  • 18,120
  • 16
  • 38
  • 50

0 Answers0