Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: TypeError: fetch failed when using proxy #136

Open
1 task done
lindeberg opened this issue Sep 4, 2024 · 2 comments
Open
1 task done

Bug: TypeError: fetch failed when using proxy #136

lindeberg opened this issue Sep 4, 2024 · 2 comments
Labels
bug Something is not working

Comments

@lindeberg
Copy link

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

  • 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 lindeberg added the bug Something is not working label Sep 4, 2024
@bittracer
Copy link

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

@michellebeard
Copy link

michellebeard commented Sep 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working
Projects
None yet
Development

No branches or pull requests

3 participants