Skip to content
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

TypeError: HttpsProxyAgent is not a constructor #29

Closed
nicob-29 opened this issue Dec 12, 2023 · 1 comment
Closed

TypeError: HttpsProxyAgent is not a constructor #29

nicob-29 opened this issue Dec 12, 2023 · 1 comment

Comments

@nicob-29
Copy link

nicob-29 commented Dec 12, 2023

Hi
version 1.3.0
If a proxy is defined and includes contains HTTPS url. Handshake failed because it is not possible to instantiate HttpsProxyAgent.

If I replace
return _secure(serverURI) ? new HttpsProxyAgent(agentOpts) : new HttpcProxyAgent(agentOpts);
by
return _secure(serverURI) ? new HttpsProxyAgent.HttpsProxyAgent(agentOpts) : new HttpcProxyAgent(agentOpts);
No exception is raised

image
Image shows the current implmentation doesn't consider new HttpsProxyAgent(agentOpts) has constructor

@sbordet
Copy link
Member

sbordet commented Dec 19, 2023

Thanks for reporting this, a fix in underway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants