ZombieJS: intermittently crashes when called repeatedly from a for loop
问题 I have a ZombieJS node server on Heroku scrapping data from the internet. The server code is called from a for loop on the client side. Each iteration of the loop makes a server call which makes a Zombie scrape. Sometimes, the server will crash with the error below. It only happens when there is more than one iteration of the for loop. How can I make the code robust enough to handle multiple simultaneous client calls, each with a for loop. Code: var express = require('express'); var app =