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

Running under the proxy #351

Closed
soulman-is-good opened this issue Aug 27, 2020 · 8 comments · Fixed by #552
Closed

Running under the proxy #351

soulman-is-good opened this issue Aug 27, 2020 · 8 comments · Fixed by #552
Labels
bug Something isn't working cdktf-cli
Milestone

Comments

@soulman-is-good
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

In our organisation we use proxy to get to internet.

When run cdktf get exception is thrown:

Error: getaddrinfo ENOTFOUND checkpoint-api.hashicorp.com

So I have to go to sources and add proxy to checkpoint.js request to get typescript files for azure provider.

If would be great if cli would respect HTTPS_PROXY environment variable

References

https://github.com/hashicorp/terraform-cdk/blob/master/packages/cdktf-cli/lib/checkpoint.ts#L25

@soulman-is-good soulman-is-good added the enhancement New feature or request label Aug 27, 2020
@skorfmann skorfmann added bug Something isn't working and removed enhancement New feature or request labels Aug 28, 2020
@skorfmann
Copy link
Contributor

Thanks for reporting this issue, I believe that's a regression of #326 - Networking issues shouldn't interrupt the workflow here.

@skorfmann skorfmann added this to the Sprint 2 - cdktfoo milestone Aug 28, 2020
@skorfmann
Copy link
Contributor

In the meantime, you can disable the metrics via the CHECKPOINT_DISABLE env.

@soulman-is-good
Copy link
Author

Thanks @skorfmann that works for me

@sonfrau
Copy link

sonfrau commented Oct 20, 2020

In the meantime, you can disable the metrics via the CHECKPOINT_DISABLE env.

The command "CHECKPOINT_DISABLE=true cdktf get" worked for me.

Thanks!

@timpur
Copy link

timpur commented Nov 23, 2020

i just ran into this problem also, wondering if we can add the env to cdktf.json as context or something so that we can consistently disable it for the project ?

@jsteinich
Copy link
Collaborator

wondering if we can add the env to cdktf.json as context or something

Not currently, but that sounds like a reasonable request.

@skorfmann
Copy link
Contributor

As mentioned in #545 we should just catch the error and ignore it.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2022

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've 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 Dec 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working cdktf-cli
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants