Bug: TypeError: fetch failed when using proxy
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- github-actions, helm, typescript
- Domain
- devops, networking, tooling
Research direction
No file or test is named. Start by tracing the TypeScript code that fetches the latest Helm release in setup-helm v4.2.0, then inspect whether the self-hosted runner's HTTP(S) proxy settings reach the request and whether proxyAgent is configured. Reproduce the proxy scenario; done means the latest-version lookup succeeds through the proxy without falling back to v3.13.3.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 191
- Forks
- 79
- Avg merge
- 17d 9h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/setup-helm
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Azure/setup-helm#188 · 3 comments · 1 reaction ·
-
bug
Azure/setup-helm#270 · 5 reactions · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
Azure/setup-helm#249 · 1 reaction ·
-
Feature Request: Add semver range support to allow installing Helm v3.x or any major/minor version Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Azure/setup-helm#242 · 1 comment · 2 reactions ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
Azure/setup-helm#241 · 2 comments · 2 reactions ·
All issues in Azure/setup-helm
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·