Issue updating domains list for cloudflare_turnstile_widget #4217
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/needs-information
Indicates an issue needs more information in order to work on it.
Milestone
Confirmation
Terraform and Cloudflare provider version
Terraform: 1.5.7
Provider: 4.43.0
Affected resource(s)
cloudflare_turnstile_widget
Terraform configuration files
Link to debug output
github.com/hashicorp/terraform-plugin-go@v0.24.0/tfprotov6/internal/diag/diagnostics.go:58
Panic output
│ Error: Error reading challenge widget
│
│ with cloudflare_turnstile_widget.ex,
│ on cf-tmp.tf line 1, in resource "cloudflare_turnstile_widget" "ex":
│ 1: resource "cloudflare_turnstile_widget" "ex" {
│
│ error from makeRequest: json: unknown field "region"
Expected output
cloudflare_turnstile_widget.ex will be updated in-place
~ resource "cloudflare_turnstile_widget" "ex" {
~ domains = [
- "mydomain2.org",
# (5 unchanged elements hidden)
]
id = "myaccountit"
name = "TFwidget"
~ secret = (sensitive value)
# (5 unchanged attributes hidden)
}
Actual output
│ Error: Error reading challenge widget
│
│ with cloudflare_turnstile_widget.ex,
│ on cf-tmp.tf line 1, in resource "cloudflare_turnstile_widget" "ex":
│ 1: resource "cloudflare_turnstile_widget" "ex" {
│
│ error from makeRequest: json: unknown field "region"
Steps to reproduce
im using provider version
"4.43.0"
im creating a turnstile widget
it creates the resource the first time just fine, but if i try to add or remove "domains" it breaks with this error:
what i tried:
its the same error each time... anyone have an idea?
Additional factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: