-
Notifications
You must be signed in to change notification settings - Fork 2k
Express 3.0.1 #326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Need more details and code. This error means that backend server didn't respond in timely fashion or that connection was closed forcefully. |
I should have replied to myself, it turned out to be the issue covered here previously with express doing non standard things to the body. After a lot of hair pulling I've decided to abandon http-proxy. It seems that I'm going to run into problems combining express with nodejitsu software. I've spent a few days debating wether to move to flatiron but it seems that express is favored so I've bet the house on that. I like that flatiron seems to be closer to the ideals of node but I've been swayed by the very few comparisons I can find online. If anyone here would like to throw their two cents in favor of flatiron I'd be very happy to hear them. I think the nodejitsu stuff is super solid but time is against me to allow me to learn and move to flatiron. |
@sirganya Thousands of |
I'm back with this issue again.... It proxies everything correctly except a POST with a body. app.all('/ads*', function(req, res, next) {
var buffer = httpProxy.buffer(req);
proxy.proxyRequest(req, res, {
host: 'localhost',
port: 8003,
buffer: buffer
});
}); Formidable then gives this error.
Here's the code from incoming_form.js lines 99 - 124 // Start listening for data.
var self = this;
req
.on('error', function(err) {
self._error(err);
})
.on('aborted', function() {
self.emit('aborted');
self._error(new Error('Request aborted'));
})
.on('data', function(buffer) {
self.write(buffer);
})
.on('end', function() {
if (self.error) {
return;
}
var err = self._parser.end();
if (err) {
self._error(err);
}
});
return this;
}; I had used connect-restreamer to fix it before, but it looks like it's not the issue anymore. |
Hi,
When I use Express with RoutingProxy I get
proxy.error: Error: socket hang up
using node 0.8.2.
I've been at it for a few hours and was wondering if the problem is with connect and express and if it was workable or if I should just downgrade the packages.
Sorry for the vagueness. I can post more details if someone thinks it's worthwhile.
Thanks
The text was updated successfully, but these errors were encountered: