Skip to content

Bug: TypeError: fetch failed when using proxy #136

@lindeberg

Description

@lindeberg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions