Problem
When executing Terraform configuration code that includes the use of the tfe
provider, you encounter the error below during the plan phase:
Error: Failed to initialize HTTP client
│
│ with provider["registry.terraform.io/hashicorp/tfe"],
│ on main.tf line 10, in provider "tfe":
│ 10: provider "tfe" {
│
│ idna: disallowed rune U+0009{
Cause
- This occurs when the value for the
hostname
argument, orTFE_HOSTNAME
environment variable set for use by thetfe
provider, contains a horizontal TAB character at the end of the address entered.
Other common unicode numbers for white space related characters you might encounter in the error message are:
- U+0020
- U+000A
Solution:
- Remove the extra space character(s) from the end of the address that's set for the
hostname
argument, orTFE_HOSTNAME
environment variable.