let response = await axios("https://api.my-ip.io/ip", {
proxy: { host: "127.0.0.1", port: 8118, protocol: "http" },
});
This hangs, although sometimes the promise resolves with response status message "Connection Established".
Running the command: curl -x http://127.0.0.1:8118 https://api.my-ip.io/ip returns the expected result from the server.
Why is the axios request exhibiting this behavior?