Thanks for your comment Jimmy_Lee, I am experiencing the same issue for an https call done though an http proxy.
My initial research issue pointed to an issue with the Axios library :
Searching this thread, look like there is a workaround leveraging the tunnel feature :
Solution details : If you are using a non browser (NodeJS) process you should find that the below approach is needed. Most non browser processes (including C# and Java HTTP Clients) do not work off the HTTP_PROXY / HTTPS_PROXY environment variables and require an equivalent setting.
const options = {
httpsAgent: TunnelAgent.httpsOverHttp({
proxy: url.parse(“http://127.0.0.1:8888”);
}),
};
await axios.get(‘https://github.com/’, options);
It is common to control whether a process uses a proxy via a configuration file, as in this JSON file of mine.
I haven’t tested this fix yet, may be another option with your existing workaround.