Before posting an issue I wanted to discuss it here to make sure I'm doing things correctly.
What I'm seeing is occasional bad characters in my gzip file.
Here is the code I use to create the file...
var fstream = require('fstream');
var tar = require('tar');
var zlib = require('zlib');
console.log("tar gzipping " + source + " -> " + dest);
fstream.Reader({path: source, type: 'Directory'})
.pipe(tar.Pack())
.pipe(zlib.createGzip())
.pipe(fstream.Writer(dest));
9/10 this code works great. 1/10 it adds 3 additional bytes to the beginning of the gzip file. Unfortunately it's happening very inconsistently and I'm unable to reproduce it reliably. I'm running on OSX using node 0.8.3.
Bytes from a working gzip it creates looks like this...
1F 8B 08 00 00 00 00 00 00 03 EC BD
Bytes from a non-working gzip look like this...
1F EF BF BD 08 00 00 00 00 00 00 00 03 EF BF <- Red bytes should be 8B
If I change the three bytes above to 8B the file works again.