Closed hakimscode closed 2 years ago
Silly me, that was absolutely 100% my false and I feel embarrassed about this.
after I added on error callback to get the detail about error, I've found that I give the wrong parameter to my function
.on('error', function(err, stdout, stderr) {
if (err) {
console.log(err.message);
console.log("stdout:\n" + stdout);
console.log("stderr:\n" + stderr);
reject("Error");
}
})
I try to make a thumbnail gif from video and using pallete to generate color. When I try my code below in Mac, everything works fine. But when I upload it to Lambda (Runtime: Node.Js 12.x, Architecture: x86_64 Linux) it produces errors. Somebody please help, I don't know what to do since I run locally on my machine (mac) works fine.
Version information
Code to reproduce
(note: if the problem only happens with some inputs, include a link to such an input file)
Expected results
GIF generated
Observed results
and error was happen on
console.log('error on end 3', err);