git-proxy icon indicating copy to clipboard operation
git-proxy copied to clipboard

git-proxy failing with DNS Resolution Error for github.com

Open hemantsharma90 opened this issue 1 year ago • 2 comments

Hello Team,

I have been trying to execute git-proxy utility in our company environment which is sitting behind a Proxy Server.

Doing a standalone curl works fine with 'https://github.com' as the http_proxy/https_proxy environment variables are already set.

$ curl -kv https://github.com // Success and gives back an HTTP 200

However using the git-proxy utility and running the server via npx.

$ npx -- @finos/git-proxy --config ../new-folder/proxy.config.json Service Listening on 8080 Listening on 8000

On doing a git push for my repository, I'm getting a DNS Resolution error.

recieved action processed Error: getaddrinfo ENOTFOUND github.com at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)

Please note I have also setup up the 'npm config' variables for the company proxy server with the below commands

$npm config set proxy 'http://<proxyuser>:<proxysecret>@<proxyserverhost>:<proxyserverport>'
$npm config set https-proxy 'http://<proxyuser>:<proxysecret>@<proxyserverhost>:<proxyserverport>'

image

hemantsharma90 avatar Oct 01 '24 05:10 hemantsharma90