Node Async - Callback was already called - using 2 for loops and an if statement
问题 Could someone please explain why I keep seeing the Error: Callback was already called . I feel I have covered all cases - so why would be 'already called': function addVertices(outercallback) { async.forEachLimit(fullData, 25, function (data, innercallback) { myJson.matches.forEach(function (oMatches) { if (data.$.id == oMatches.SourceId) { oMatches.Ids.forEach(function (oId) { client.execute("g.addV('test').property('id', \"" + oId + "\")", {}, (err, results) => { if (err) { return