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

Proxy not working #85

Closed
michael-s-gibson opened this issue Jan 8, 2021 · 1 comment
Closed

Proxy not working #85

michael-s-gibson opened this issue Jan 8, 2021 · 1 comment

Comments

@michael-s-gibson
Copy link

Hi,

I have to use the JScrambler CLI through a corporate proxy (only supplying a host and port) and the latest version (5.5.18) does not look like it works with proxies; I keep getting an ETIMEDOUT error.

On looking at client.js, I see it's using HttpsProxyAgent rather than Axios (lines 199-200).

settings.proxy = false;
settings.httpsAgent = new HttpsProxyAgent({host, port, auth: formattedAuth, ...agentOptions});

If I change the above lines to use the proxy object

settings.proxy = {host, port}
//settings.httpsAgent = new HttpsProxyAgent({host, port, auth: formattedAuth, ...agentOptions});

or roll back to a version before the HttpProxyAgent commits (5.5.8 for example), the proxy works.

Is there a reason why HttpsProxyAgent is not working?

@gualterandre
Copy link

Hello

We need to investigate this with our Engineering Team. Can you please send this issue directly to:

support@jscrambler.com

So our Team can take a look at this?

Thanks

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

3 participants