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

Action fails behind the proxy #17

Closed
ytsarev opened this issue Jun 4, 2020 · 3 comments · Fixed by #147
Closed

Action fails behind the proxy #17

ytsarev opened this issue Jun 4, 2020 · 3 comments · Fixed by #147
Labels
bug Something isn't working

Comments

@ytsarev
Copy link

ytsarev commented Jun 4, 2020

We are using self-hosted runners and trying to execute the action behind the corporate proxy

It fails with

Run hashicorp/setup-terraform@v1
##[error]Failed to fetch version metadata. FetchError: request to https://releases.hashicorp.com/terraform/index.json failed, reason: connect ETIMEDOUT 151.101.193.183:443
##[error](s || "").replace is not a function

I tried to declare standard http_proxy variables with

        env:
          http_proxy: http://<proxy_adress>:<port>
          https_proxy: http://<proxy_adress>:<port>

It didn't help apparently due to the node's fetch specifics which is used at

return fetch('https://releases.hashicorp.com/terraform/index.json')

Related upstream issue node-fetch/node-fetch#79

@manufunk
Copy link

Is there any update on this?
The mentioned code changed and the fetch is not visible anymore. However I'm still facing issues behind a proxy even with passing https_proxy and http_proxy.

Error: Error: getaddrinfo ENOTFOUND releases.hashicorp.com
Error: getaddrinfo ENOTFOUND releases.hashicorp.com

@aeschright aeschright added the bug Something isn't working label Apr 20, 2021
@L4R5
Copy link

L4R5 commented Jul 8, 2021

For a test I added the ip address to /etc/hosts on the runner, but it still tries to connect to releases.hashicorp.com directly without proxy.

rabun788 added a commit to rabun788/setup-terraform that referenced this issue Feb 17, 2022
rabun788 added a commit to rabun788/setup-terraform that referenced this issue Feb 17, 2022
rabun788 added a commit to rabun788/setup-terraform that referenced this issue Feb 17, 2022
jpogran pushed a commit to rabun788/setup-terraform that referenced this issue Mar 4, 2022
jpogran added a commit that referenced this issue Mar 4, 2022
This action fails behind a proxy, this PR updates hashicorp/js-releases from 1.40 to 1.50 which should allow a proxy to be set.

- bump hashicorp/js-releases from 1.40 to 1.50

Fixes #17

Co-authored-by: James Pogran <jpogran@outlook.com>
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants