Open samuel-deal-tisseo opened 6 months ago
I'm afraid I don't really understand what you're describing. Do you think you could submit a failing test case as a pull request? Also, try to take axios
out of the equation to rule out some kind of issue with that package.
I think you are misconfiguring axios. The code here loads the proxy variable from the environment: https://github.com/axios/axios/blob/v1.x/lib/adapters/http.js#L77
You need to use false
, i.e., request.proxy = false
.
Please note that "proxy" in axios means "relay my request" or "man in the middle attack". In contrast, https-proxy-agent
implements a tunnel or "HTTP CONNECT". These are two totally different methods with totally different implications.
In other words, do not user proxy
from axios and always set it to false
. It's likely never what you want (for anyone reading this).
Furthermore, note that the http-proxy-agent
implements the relay method too. In other words, you want to use HttpsProxyAgent
for both httpAgent
and httpsAgent
(it can be the same instance to my understanding).
If a system defined proxy and an explicit proxy config, requests failed using axios.
I'm not sure if it's an Axios or a httpsAgent issue (or that I don't use those two library correctly).
Example:
Given the following configuration
I have the following results: