It seems that vanilla Node RED failed to handle concurrent post requests such as delete or install multiple flows at the same time.
More tests are required.
To reproduce, the following test failed to install two flows to Node RED concurrently. Although Node RED console is showing two flows being added, only one shows up as a successful install.
var request = require('request-promise-native')
var flows = [
{"id":"10a2314c.b9058f","label":"Flow 3","nodes":[{"id":"ae638171.4967a","type":"inject","z":"10a2314c.b9058f","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":223.8693084716797,"y":61.965904235839844,"wires":[[]]}]},
{"id":"c31b9b4e.a9bb08","label":"Flow 2","nodes":[{"id":"b2229065.d4ec9","type":"debug","z":"c31b9b4e.a9bb08","name":"","active":true,"console":"false","complete":"false","x":228.8693084716797,"y":163.28692626953125,"wires":[]}]}
]
for (var i = 0; i < flows.length; i++){
var options = {
method: 'POST',
uri: 'http://localhost:1880/flow',
body: flows[i],
json: true
};
request(options)
}
It seems that vanilla Node RED failed to handle concurrent post requests such as delete or install multiple flows at the same time.
More tests are required.
To reproduce, the following test failed to install two flows to Node RED concurrently. Although Node RED console is showing two flows being added, only one shows up as a successful install.