corrupted component downloads #374
Comments
I've got the same problem several times. I found the script fetched by |
@chemzqm @domachine try 0.16.5 |
0.16.5 has this nasty bug with superagent. see #364. |
i'm using node 0.10.12, component 0.16.7 and it happened to me only once. i don't remember what i did, probably make clean build. |
we tried it on 2 VMs now and it's all the same. component fetches the files: some are fine but many are corrupted and cause syntax errors in the |
this happened to me yesterday as well for about an hour, not sure what i did either, but it disappeared again. |
stream all the things. will look at this tonight |
nvm, it's pretty regular now. happens a lot to me with
|
Same here, notice the same things with component/event and On Mon, Jul 15, 2013 at 7:12 PM, Ian Storm Taylor
PG |
@ianstormtaylor the same for me. it's not really usable. i downgraded to 0.16.5 with superagent 0.10.0. |
Getting this too, it seems pretty random. Sometimes it injects extra characters in one place, sometimes in another place, sometimes not. It seems to happen at roughly the same few points in the code though. Any updates? |
@viatropos what versions of node, component are you using. |
@yields component v0.16.7, node v0.10.4 |
Haven't had much time to dig in, but seems like it's probably happening because of the if (self.piped) {
res.on('end', function(){
self.emit('end');
});
return;
} Request.prototype.pipe = function(stream, options){
this.piped = true; // HACK...
this.buffer(false);
this.end().req.on('response', function(res){
if (/^(deflate|gzip)$/.test(res.headers['content-encoding'])) {
res.pipe(zlib.createUnzip()).pipe(stream, options);
} else {
res.pipe(stream, options);
}
});
return stream;
}; console.logging some when the streams each Seems like maybe it needs to be using the |
following @domachine's suggestion solved the problem, good temporary workaround: $ npm uninstall component -g
$ npm install component@0.16.5 -g
$ cd /usr/local/share/npm/lib/node_modules/component
$ npm install superagent@0.10.0 -S |
im just going to remove the stream bullshit from superagent, I'll patch this pretty soon with regular http/https |
i'm not quite sure but since 0.16.7 i'm recognizing problems with corrupted dependencies.
component install
fetches dependencies but they have syntax errors in their included scripts. they're then copied to thebuild
file and are recognized as syntax errors by the browser. it's really hard to reproduce those errors since they appear irregularly in different dependencies when trying multiple dependency installs. is somebody else recognizing similar behaviour?i'm using node 0.10.12 with component 0.16.7
The text was updated successfully, but these errors were encountered: