You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I debugged it and found out that when calling node's http.request(...) inside the function HttpConnector.prototype.request an agent is passed with the request parameters that is somehow incompatible.
When I set reqParams.agent = undefined; before the this.hand.request(reqParams, ...) call then the request succeeds again. Probably, the forever-agent you are depending on is the culprit?
The text was updated successfully, but these errors were encountered:
As 0.11 is unstable by definition, I haven't taken time to solve why it doesn't work. A quick look at the 0.11.13 docs imply that the Agent's in 0.11 serve the same purpose as forever-agent, so you could probably use this custom HTTP Connector if you would like to use KeepAlive connections and node 0.11
FYI: The signature of agent.addRequest(...) as it is implemented by CustomForeverAgent.prototype.addRequest and called from the native http module changed from passing the arguments req, host, port (node.js v0.10) to passing just req, options (node.js v0.11). options actually is reqParams from your this.hand.request(reqParams, ...) call.
The following code succeeds in node.js 0.10.28:
However, in node.js v0.11.13 it fails.
I debugged it and found out that when calling node's
http.request(...)
inside the functionHttpConnector.prototype.request
an agent is passed with the request parameters that is somehow incompatible.When I set
reqParams.agent = undefined;
before thethis.hand.request(reqParams, ...)
call then the request succeeds again. Probably, the forever-agent you are depending on is the culprit?The text was updated successfully, but these errors were encountered: