I am executing some cmd commands with getasync and it gives me this error:
Unhandled rejection RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stderr maxBuffer length exceeded
The output is quite large, but I need it to debug the underlying python scripts.. Is there a way to enlarge the maxBuffer? See my code:
thecaller: function(req, callback) {
const geoJSON = req.geoJSON;
const nameofinstance = req.name;
const Promise = require("bluebird");
const cmd = require('node-cmd');
const getAsync = Promise.promisify(cmd.get, { multiArgs: true, context: cmd });
getAsync(`python3 firstscript.py`)
.then(() => getAsync(`python3 secondscript.py`))
.then(callback(nameofplanung));
The problem arises at the first ".then"