gulp-smushit
gulp-smushit copied to clipboard
Error 503 when using smushit during move process.
gulp.task('copy-assets:datatables.net:images', function() {
return gulp.src(nodeSource + "/datatables/media/images/*.png")
.pipe(smushit())
.pipe(gulp.dest(assetRoot + "/images/"));
});
When running the above gulp task I'm getting an error (shown below)...
$ gulp copy-assets:datatables.net:images
[10:28:41] Using gulpfile ~\Dev\agrilead\gulpfile.js
[10:28:41] Starting 'copy-assets:datatables.net:images'...
{ '0': <File "sort_asc.png" <Buffer 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 13 00 00 00 13 08 06 00 00 00 72 50 36 cc 00 00 00 67 49 44 41 54 38 cb 63 60 18 b2 a0 aa e1 ... >>,
'1': 503 }
events.js:160
throw er; // Unhandled 'error' event
^
Error: 503
The error gets triggered on different files at times. Is there any sort of rate limiting on the back-end service?
Try updating the Package manager... It should fix the issue...
npm i -g npm