Open
Description
Describe the bug
Axios uses the HTTP proxy, even when it should not.
To Reproduce
Environment
- Ubuntu Linux
- Proxy set in mate-network-properties
- A fresh terminal has environment variables HTTPS_PROXY, HTTP_PROXY, https_proxy, http_proxy set
- The proxy is a most recent squid HTTP proxy
Code snippet
export https_proxy=""
export http_proxy=""
// with proxy, see above
let r = await axios.get("https://www.beonex.com");
console.log("page", r.text());
Expected behavior
- No proxy is used
Actual result
- The proxy is used
Axios Version
1.5.1
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
18.15.0
OS
Ubuntu Linux
Additional Library Versions
No response
Additional context/Screenshots
What works
If you set export no_proxy="*"
, then axios avoids the proxy and it works.
Metadata
Metadata
Assignees
Labels
No labels