-
Notifications
You must be signed in to change notification settings - Fork 2k
Version 0.5.0 returns "Invalid argument to getAgent" on examples #38
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
My testing shows this example does work in version 0.3.1 but not 0.4.1, 0.4.2, or 0.5.0. |
See #39 for potential resolution |
I will roll this into Although this commit claims it was made in February, when I released |
Uh oh, looks like the clock on my VM may be off. This could be bad... Thanks for letting me know! Tim On 4/26/2011 5:20 PM, indexzero wrote:
|
yeah, this was just a few weeks ago, i don't know why it has that date on it. |
Oh, I thought you meant my commit. Mine should be: Not sure why that other one would have a strange date. Tim On 4/26/2011 5:22 PM, mikeal wrote:
|
THEN THE KILLER INTERACTIVELY REBASED THE COMMIT HISTORY |
i think i know what happened. |
I figured something like that. Not a problem. I'll make sure to put |
I just made a clean npm install node-http-proxy, and I am using node0.5.0pre. I get the same error, I thought this was resolved long time ago? http.js:1455 |
This seems to be something (still) going on in Node.js core. The code in questions claims that it is backwards compatible: https://github.com/joyent/node/blob/master/lib/http.js#L1427 Perhaps @ry or @mikeal could shed some light on why this is popping up again. Host is still being passed as a string in node-http-proxy (i.e. "legacy" arguments) https://github.com/nodejitsu/node-http-proxy/blob/master/lib/node-http-proxy.js#L48 I think that this may be a bug in core related to 'foo' instanceof String
false
typeof 'foo' == 'string'
true Should be a quick fix. Reasonbly sure this has nothing to do with node-http-proxy. |
I'm new to http-proxy but after running the example here:
https://github.com/nodejitsu/node-http-proxy/blob/v0.5.0/examples/basic-proxy.js
With some modifications (changed path of http-proxy to work in my environment) it starts but immediately throws an exception when the first client tries to connect. Is there additional setup I need to do to get it running? I am running node v0.5.0-pre according to "node --version" and just pulled http-agent from npm today (2011, April 26th).
Here is the full exception:
The text was updated successfully, but these errors were encountered: