setup-helm icon indicating copy to clipboard operation
setup-helm copied to clipboard

Bug: TypeError: fetch failed when using proxy

Open lindeberg opened this issue 1 year ago • 2 comments

What happened?

We get the error

Warning: Error while fetching latest Helm release: TypeError: fetch failed. Using default version v3.13.3

when using v4.2.0 on a self-hosted runner with http proxy.

It seems that the proxy is not being used. Is proxyAgent not set using undici?

Version

  • [X] I am using the latest version

Runner

self-hosted, linux

Relevant log output

2024-09-04T11:38:09.8209789Z Runner is running behind proxy server '<secret>' for all HTTP requests.
2024-09-04T11:38:09.8211276Z Runner is running behind proxy server '<secret>' for all HTTPS requests.
..
2024-09-04T11:39:42.6880383Z ##[group]Run azure/setup-helm@v4
2024-09-04T11:39:42.6881031Z with:
2024-09-04T11:39:42.6881437Z   version: latest
2024-09-04T11:39:42.6882168Z   token: ***
2024-09-04T11:39:42.6882706Z   downloadBaseURL: https://get.helm.sh
2024-09-04T11:39:42.6884917Z ##[endgroup]
2024-09-04T11:39:52.8510007Z ##[warning]Error while fetching latest Helm release: TypeError: fetch failed. Using default version v3.13.3
2024-09-04T11:39:52.8520686Z ##[group]Downloading v3.13.3

lindeberg avatar Sep 04 '24 11:09 lindeberg

Having similar issue:

Downloading v3.10.0
  getaddrinfo ENOTFOUND get.helm.sh
  Waiting 18 seconds before trying again
  getaddrinfo ENOTFOUND get.helm.sh
  Waiting 18 seconds before trying again
  Error: Error: Failed to download Helm from location https://get.helm.sh/helm-v3.10.0-linux-amd64.zip

bittracer avatar Sep 05 '24 21:09 bittracer

Appears to be an issue with resolving get.helm.sh. Started working again for me.

dig get.helm.sh +short
gethelm.azureedge.net.
gethelm.ec.azureedge.net.
scdn114fb.wpc.b1766.zetacdn.net.
sni1gl.wpc.zetacdn.net.
152.195.19.97

michellebeard avatar Sep 05 '24 22:09 michellebeard