-
Notifications
You must be signed in to change notification settings - Fork 59
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
[BUG] Invalid character '<' looking for beginning of value #192
Labels
bug
Something isn't working
Comments
The following code works for me
|
I am using the same terraform version and OpenSearch version 2.14.0 |
We're using self hosted open-search v 1.3.1 on cloud vm's. Could be this the reason? |
I tested it via 2.7.0. the same. one thing was another that i try to deploy to http://localhost not HTTPS. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the bug?
2024-05-29T14:38:10.367+0300 [ERROR] vertex "opensearch_index.test-simple-index" error: invalid character '<' looking for beginning of value
╷
│ Error: invalid character '<' looking for beginning of value
How can one reproduce the bug?
resource "opensearch_index" "test-simple-index" {
name = "terraform-test"
number_of_shards = "1"
number_of_replicas = "1"
mappings = <<EOF
{
"properties": {
"name": {
"type": "text"
}
}
}
EOF
}
What is the expected behavior?
terraform could apply the change and create the index.
What is your host/environment?
terraform version = "1.8.4"
opensearch version = "2.2.1"
Do you have any screenshots?
Do you have any additional context?
the logs are recorded:
2024-05-29T14:38:09.838+0300 [WARN] unexpected data: registry.terraform.io/opensearch-project/opensearch:stderr="{"@caller":"github.com/hashicorp/terraform-plugin-sdk/[email protected]/internal/logging/helper_schema.go:21","@Level":"trace","@message":"Calling downstream","@module":"sdk.helper_schema","@timestamp":"2024-05-29T14:38:09.838292+03:00"}"
2024-05-29T14:38:09.844+0300 [INFO] provider.terraform-provider-opensearch_v1.0.0: 2024/05/29 14:38:09 [INFO] Pinging url to determine version https://localhost with timeout 5s: timestamp="2024-05-29T14:38:09.844+0300"
2024-05-29T14:38:10.358+0300 [WARN] unexpected data: registry.terraform.io/opensearch-project/opensearch:stderr="{"@caller":"github.com/hashicorp/terraform-plugin-sdk/[email protected]/internal/logging/helper_schema.go:21","@Level":"trace","@message":"Called downstream","@module":"sdk.helper_schema","@timestamp":"2024-05-29T14:38:10.357307+03:00"}"
2024-05-29T14:38:10.367+0300 [DEBUG] State storage *statemgr.Filesystem declined to persist a state snapshot
2024-05-29T14:38:10.367+0300 [ERROR] vertex "opensearch_index.test-simple-index" error: invalid character '<' looking for beginning of value
╷
│ Error: invalid character '<' looking for beginning of value
│
│ with opensearch_index.test-simple-index,
│ on main.tf line 45, in resource "opensearch_index" "test-simple-index":
│ 45: resource "opensearch_index" "test-simple-index" {
│
╵
2024-05-29T14:38:10.376+0300 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-05-29T14:38:10.382+0300 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/opensearch-project/opensearch/1.0.0/linux_amd64/terraform-provider-opensearch_v1.0.0 pid=226663
2024-05-29T14:38:10.382+0300 [DEBUG] provider: plugin exited
The text was updated successfully, but these errors were encountered: