Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Request cloning breaks HTTP agents #115

Open
csabakoncz opened this issue Apr 4, 2018 · 0 comments
Open

Request cloning breaks HTTP agents #115

csabakoncz opened this issue Apr 4, 2018 · 0 comments

Comments

@csabakoncz
Copy link

const options = _.cloneDeep(opts || req.rocky.options)

Running under node 8.9.4 and using https-proxy-agent (https://github.com/TooTallNate/node-https-proxy-agent) to get across a corporate proxy, I get this error:

Agent option must be an Agent-like object, undefined, or false.

Could fix it by restoring the agent after the deep cloning:

  //restore agent:
  options.agent = req.rocky.options.agent;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant