Error write eof at errnoException


#1

Please help with this error, use cfs:graphicsmagick for Fs.Store.GridFS, I have this code…

`Avatar = new FS.Collection(“avatar”, {
stores: [new FS.Store.GridFS(“avatar”, {
beforeWrite: function (fileObj) {
return {
extension: ‘png’,
type: ‘image/png’
};
},
transformWrite: function (fileObj, readStream, writeStream) {
gm(readStream, fileObj.name()).resize(‘50’, ‘50’).stream().pipe(writeStream);
}
})]

});
Avatar.allow({
insert: function () {
return true;
},
update: function () {
return true;
},
remove: function () {
return true;
}
});`

But this generates this error …

Thanks for the help…


#2

The problem was my operating system
I was using Windows 10, I switched to Ubuntu 16.04 operating system and works perfectly … 07 Sep 2016 … sorry my English …