-
Notifications
You must be signed in to change notification settings - Fork 2k
test suite fails w/ ECONNREFUSED #48
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
ECONNREFUSED is a generic node.js error message when a socket cannot make a connection. It usually indicates that the listening server isn't infact listening, or the outgoing request you made to the server could not find its target. With that being said, I'm not entirely sure what your issue is. Could it be possible you are already running services on the port http-proxy is trying to use for it's tests? Maybe you could change the port number in the test files? @indexzero - Do you have any ideas why this could be happening? |
Thanks for the response. The ports are already varied so every test shouldn't fail if it had to do with port. I took a shot anyway and I did mix them up but no change. To add to this mystery... I get the exact same results on my ubuntu 10.10 vps with the same node, npm, and module versions. |
What versions of node and npm are you running? |
I just ran the test suite locally on my machine, and I can confirm I am seeing the same errors in the test suite. Right now I'm going to assume that it's a regression from an update to node.js core. I'm in SF until the weekend, so I may not have time to properly address this until Monday. |
No worries on time table. I see I forgot npm in the original.
|
I tried to reverting back to node |
{protocol}.getAgent() method signature If I change these lines in node-http-proxy.js:
Everything seems to work then. Then I found this haha |
And there's already a pull request |
Something is wrong in core. The method signature you suggest is not the correct method signature. This may be the result of a bad rebase on behalf of @ry. In Old commit that fixes this v0.4.7 master I would like to suggest a hotfix release for nodejs as This issue should also be closed: nodejs/node-v0.x-archive#943 and is discussed more: #38 |
Yea I meant that signature only for comparison. It's what will work with 0.4.7. I agree that node-http-proxy should not be modified. It's just good to know about this incompatibility if others have issues. Thanks all. |
the fix only went in to master, not in to 0.4.x, because while this is a "bug" the fix for the bug makes 0.4.future not forward compatible. |
I'm running into issues that seem like a problem with just my system but I was hoping to find some assistance.
When I run
all tests fail that are not expecting a 404 or 500.
The errors look like this:
Anyone seen this before? Seems like I'm missing something important. There is very little information on ECONNREFUSED. I do know that the error happens on making the request from proxy to target using the 'request' module (which is expected given the error) but I can't determine why. I'm hoping there's something simple I missed.
The text was updated successfully, but these errors were encountered: