Closed flit closed 4 years ago
@rgf97
Good debugging @jeromecoutant Thanks for all the detail. I actually use a GET
from my API, I just need to figure out how to let the OS do the DNS (like everyone else...)
The issue is not the DNS, the issue is not using the proxy. In my environment, DNS resolution of www.keil.com works just fine, but http requests need to go through the proxy. pyocd pack --install fails with "Connection refused (os error 111)".
There are probably multiple proxy-related issues here, depending on the network setup. The error reported by @jeromecoutant was "No such host is known. (os error 11001)", which indicates a DNS failure.
There are probably multiple proxy-related issues here, depending on the network setup.
I don't think so. In the error reported by @jeromecoutant the proxy is perfectly reachable and hostname of proxy resolves, so there are no DNS issues.
I'm not really fluent in rust and don't know the library landscape, so I can't really check in the source, nevertheless, strace(1)ing pyocd suggest http_proxy / https_proxy environment variables are ignored, iow no proxy functionality is implemented.
@jeromecoutant @rmu75 Would you be willing to run a test build from my branch https://github.com/theotherjimmy/cmsis-pack-manager/tree/use-reqwest to confirm proxy support in your setups?
Sorry for the late reply, very busy atm. Of course I am willing to test this. Thanks.
Closing this issue, it should be fixed. CPM now uses reqwest, and calls .use_sys_proxy()
.
If someone encounters the problem again, please reopen.
This is a request to add support for the
http_proxy
environment variable so that the index and packs can be downloaded through a proxy server.See below from @jeromecoutant in mbedmicro/pyOCD#638. The gist is that curl is able to access the Keil index files from a corporate network behind a proxy, where CPM cannot (it fails with a DNS error).