You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the helper package @protobuf-ts/protoc to install the protoc compiler in an environment where no direct internet access is available but a proxy is configured through the environment variables HTTP_PROXY and or HTTPS_PROXY the http request to download the latest release from github will hang until it fails with a timeout (which makes sense as it cannot connect to github without a proxy).
It would be quite useful if the automatic downloading of the protobuf compiler would work behind a proxy as well.
Unfortunately it seems that the node https and http core modules do not respect the proxy environment variables so to implement this feature there are two options:
use a different request library
use a library which creates a http.Agent which respects the proxy env and pass that to https.get
Supporting the HTTP_PROXY variables is a good call. Happy to accept a contribution, but an implementation that does not add dependencies would be preferred.
When using the helper package
@protobuf-ts/protoc
to install theprotoc
compiler in an environment where no direct internet access is available but a proxy is configured through the environment variablesHTTP_PROXY
and orHTTPS_PROXY
the http request to download the latest release from github will hang until it fails with a timeout (which makes sense as it cannot connect to github without a proxy).It would be quite useful if the automatic downloading of the protobuf compiler would work behind a proxy as well.
Unfortunately it seems that the node
https
andhttp
core modules do not respect the proxy environment variables so to implement this feature there are two options:http.Agent
which respects the proxy env and pass that tohttps.get
A nice summary can also be found in this stackoverflow thread
The text was updated successfully, but these errors were encountered: