Open leondroidgeeks opened 7 years ago
Its looks like same issue ....error occurs when uploading files more than 100kB
let options = {
url: full_url,
method: http_method,
data: payload
};
postData as payload
let postData = {
name: imageData.name,
bytes: new Buffer(fileData).toString('base64').toString('utf8')
};
Unhandled rejection Error: spawn E2BIG
at _errnoException (util.js:1031:13)
at ChildProcess.spawn (internal/child_process.js:340:11)
at Object.exports.spawn (child_process.js:499:9)
....
When I make a post request which contains a large body I get this error:
When I try to send a smaller file (smaller body) it works. When I send the request using Postman I works as well even with the large file.